alsa output: fix playback of 44100 Hz movies on some audio cards
Some audio cards will fail at configuring the hardware parameters with snd_pcm_hw_params_set_near(). The solution is to use snd_pcm_hw_params_set_buffer_time_min() instead of snd_pcm_hw_params_set_buffer_time_near(), since the latter restricts buffer time so much that other parameters cannot be adjusted. Hence the call to snd_pcm_hw_params_set_buffer_time_near() will fail and return an error for movies with audio rate of 44100 Hz.
Showing
Please register or sign in to comment