]> Repos - portaudio/commit
hotplug wmme: Change StopStream() timeout policy. For callback streams the maximum...
authorRoss Bencina <rossb@audiomulch.com>
Sun, 11 Sep 2016 15:24:51 +0000 (01:24 +1000)
committerRoss Bencina <rossb@audiomulch.com>
Sun, 11 Sep 2016 15:24:51 +0000 (01:24 +1000)
commit6a1f1b40570f415349281325405337245c155a7a
treedaccf881438bd08c9ced238a787893bba0589b1a
parent0448f3e7b7c79fb153030adc9531801d4ef09811
hotplug wmme: Change StopStream() timeout policy. For callback streams the maximum wait times have been tweaked. Total wait time has been reduced (Old algorithm wait time: [max(2*totalBuffersDur*1.5, 2*1second)], new algorithm wait time: [totalBuffersDur*1.5+min(totalBuffersDur*1.5, 1second)]). For blocking read write streams, the maximum wait time has been reduced to approximately totalBuffersDur*1.5. Added test patest_unplug_readwrite.c for testing stopping read/write streams after unplug. Tweaked patest_unplug.c to build on Windows, and to use 1 input channel (for headset). (Timeout changes made with reference to Jitsi [lyubomir a45b993, Thank you!].
src/hostapi/wmme/pa_win_wmme.c
test/patest_unplug.c
test/patest_unplug_readwrite.c [new file with mode: 0644]