Update optional stream name for playback in PulseAudio API.
authorGary Scavone <gary@music.mcgill.ca>
Fri, 8 May 2015 13:26:50 +0000 (09:26 -0400)
committerGary Scavone <gary@music.mcgill.ca>
Fri, 8 May 2015 13:26:50 +0000 (09:26 -0400)
RtAudio.cpp

index 6fe26d0684b83d288f5c39b623a8b14bf887e8d2..cc81fc988e071a0bcb966f681797ed9a67ca4c5c 100755 (executable)
@@ -8522,7 +8522,7 @@ bool RtApiPulse::probeDeviceOpen( unsigned int device, StreamMode mode,
     }\r
     break;\r
   case OUTPUT:\r
-    pah->s_play = pa_simple_new( NULL, "RtAudio", PA_STREAM_PLAYBACK, NULL, "Playback", &ss, NULL, NULL, &error );\r
+    pah->s_play = pa_simple_new( NULL, streamName.c_str(), PA_STREAM_PLAYBACK, NULL, "Playback", &ss, NULL, NULL, &error );\r
     if ( !pah->s_play ) {\r
       errorText_ = "RtApiPulse::probeDeviceOpen: error connecting output to PulseAudio server.";\r
       goto error;\r