Clamp the ALSA buffer time between min and max if setting near fails
commit92827cc467e6bfd9ff5879b6018a0f8d2bcec2df
authorChris Robinson <chris.kcat@gmail.com>
Mon, 7 May 2012 18:42:59 +0000 (7 11:42 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Mon, 7 May 2012 18:42:59 +0000 (7 11:42 -0700)
tree59d3580f8319191347ce9a4d4ad56b2154346e38
parentdd3d5bc2d4f4644d71668ac6e5b15c8bbe88d9c6
Clamp the ALSA buffer time between min and max if setting near fails

It seems there's some bugs with snd_pcm_hw_params_set_buffer_time_near that
cause it to return "invalid argument" despite a valid nearby buffer time being
available. Clamping the buffer time seems to mitigate the issue a bit.
Alc/backends/alsa.c