]> Repos - portaudio/commit
alsa:
authordmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 9 Feb 2011 08:53:50 +0000 (08:53 +0000)
committerdmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 9 Feb 2011 08:53:50 +0000 (08:53 +0000)
commit4318a7556bb5ae69d9165a804f26f8ad03a47e6c
tree9db2871b0737cc9acf59697ff9d2acde5214691b
parent5027e95e70fb35d83afaf657ef8d66adc114ef8f
alsa:
- fixed callback thread to exit normally if error condition was satisfied during stream processing (OnExit wasn't called), it was possible cause of crash if error happened inside the thread
- modified processing thread to timeout during poll() within around 2 seconds instead of 64 milliseconds, this will help to fix problems on systems with low processing power and possible CPU overloading, like portable ARM devices
- timeout of poll() will not cause stream to stop but will cause Alsa stream restart, poll timeout will now set 'xrun' event to 1
src/hostapi/alsa/pa_linux_alsa.c