Skip to content

Commit

Permalink
Merge pull request #31 from j-b-m/master
Browse files Browse the repository at this point in the history
Fix rtaudio reconnection issue
  • Loading branch information
ddennedy committed May 31, 2013
2 parents 799c290 + 59685f8 commit 7e60c2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/gtk2/producer_count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ parameters:
- none
- clock
mutable: yes
widget: combo
widget: combo
3 changes: 3 additions & 0 deletions src/modules/rtaudio/consumer_rtaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ class RtAudioConsumer
parameters.deviceName = mlt_properties_get( properties, "resource" );

try {
if ( rt.isStreamOpen() ) {
rt.closeStream();
}
rt.openStream( &parameters, NULL, RTAUDIO_SINT16,
frequency, &bufferFrames, &rtaudio_callback, this, &options );
rt.startStream();
Expand Down

0 comments on commit 7e60c2b

Please sign in to comment.