pah = static_cast<PulseAudioHandle *>( stream_.apiHandle );\r
\r
int error;\r
+ std::string streamName = "RtAudio";\r
+ if ( !options->streamName.empty() ) streamName = options->streamName;\r
switch ( mode ) {\r
case INPUT:\r
- pah->s_rec = pa_simple_new( NULL, "RtAudio", PA_STREAM_RECORD, NULL, "Record", &ss, NULL, NULL, &error );\r
+ pa_buffer_attr buffer_attr;\r
+ buffer_attr.fragsize = bufferBytes;\r
+ buffer_attr.maxlength = -1;\r
+\r
+ pah->s_rec = pa_simple_new( NULL, streamName.c_str(), PA_STREAM_RECORD, NULL, "Record", &ss, NULL, &buffer_attr, &error );\r
if ( !pah->s_rec ) {\r
errorText_ = "RtApiPulse::probeDeviceOpen: error connecting input to PulseAudio server.";\r
goto error;\r