Skip to content
Snippets Groups Projects
Commit 83037f49 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

Merge branch 'm_savard' into echocancel

parents 6b3029e1 98ca4a1b
No related branches found
No related tags found
No related merge requests found
...@@ -230,7 +230,11 @@ AudioStream::createStream (pa_context* c, std::string *deviceName) ...@@ -230,7 +230,11 @@ AudioStream::createStream (pa_context* c, std::string *deviceName)
attributes->minreq = (uint32_t) -1; attributes->minreq = (uint32_t) -1;
pa_threaded_mainloop_lock(_mainloop); pa_threaded_mainloop_lock(_mainloop);
if(deviceName)
pa_stream_connect_playback(s, deviceName->c_str(), attributes, (pa_stream_flags_t) (PA_STREAM_ADJUST_LATENCY|PA_STREAM_AUTO_TIMING_UPDATE), NULL, NULL);
else
pa_stream_connect_playback(s, NULL, attributes, (pa_stream_flags_t) (PA_STREAM_ADJUST_LATENCY|PA_STREAM_AUTO_TIMING_UPDATE), NULL, NULL); pa_stream_connect_playback(s, NULL, attributes, (pa_stream_flags_t) (PA_STREAM_ADJUST_LATENCY|PA_STREAM_AUTO_TIMING_UPDATE), NULL, NULL);
pa_threaded_mainloop_unlock(_mainloop); pa_threaded_mainloop_unlock(_mainloop);
} else if (_streamType == UPLOAD_STREAM) { } else if (_streamType == UPLOAD_STREAM) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment