• Jean-Paul Saman's avatar
    alsa output: fix playback of 44100 Hz movies on some audio cards · f73096eb
    Jean-Paul Saman authored
    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.
    f73096eb
alsa.c 22.4 KB