Browse Source

Set pulseaudio stream name

tags/1.9.4
falkTX 11 years ago
parent
commit
38b85ae2c5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/modules/rtaudio/RtAudio.cpp

+ 2
- 2
source/modules/rtaudio/RtAudio.cpp View File

@@ -6825,14 +6825,14 @@ bool RtApiPulse::probeDeviceOpen( unsigned int device, StreamMode mode,
int error;
switch ( mode ) {
case INPUT:
pah->s_rec = pa_simple_new( NULL, "RtAudio", PA_STREAM_RECORD, NULL, "Record", &ss, NULL, NULL, &error );
pah->s_rec = pa_simple_new( NULL, options ? options->streamName.c_str() : "RtAudio", PA_STREAM_RECORD, NULL, "Record", &ss, NULL, NULL, &error );
if ( !pah->s_rec ) {
errorText_ = "RtApiPulse::probeDeviceOpen: error connecting input to PulseAudio server.";
goto error;
}
break;
case OUTPUT:
pah->s_play = pa_simple_new( NULL, "RtAudio", PA_STREAM_PLAYBACK, NULL, "Playback", &ss, NULL, NULL, &error );
pah->s_play = pa_simple_new( NULL, options ? options->streamName.c_str() : "RtAudio", PA_STREAM_PLAYBACK, NULL, "Playback", &ss, NULL, NULL, &error );
if ( !pah->s_play ) {
errorText_ = "RtApiPulse::probeDeviceOpen: error connecting output to PulseAudio server.";
goto error;


Loading…
Cancel
Save