mirror of https://github.com/mpv-player/mpv
c447ef4e74
ao_alsa used static variables to define the parameter values for snd_pcm_hw_params_set_buffer_time_near() and snd_pcm_hw_params_set_periods_near(). The variables were non-const and the desired value was only set in the initializer. The ALSA functions in question take a pointer argument to an in/out parameter which is modified to reflect the value actually used. As a result, when playing multiple files or otherwise reinitializing the AO the later instances could use values that had been modified by earlier calls. Change the code to always always use the same default values. |
||
---|---|---|
.. | ||
ao_alsa.c | ||
ao_alsa5.c | ||
ao_arts.c | ||
ao_coreaudio.c | ||
ao_dart.c | ||
ao_dsound.c | ||
ao_dxr2.c | ||
ao_esd.c | ||
ao_ivtv.c | ||
ao_jack.c | ||
ao_mpegpes.c | ||
ao_nas.c | ||
ao_null.c | ||
ao_openal.c | ||
ao_oss.c | ||
ao_pcm.c | ||
ao_pulse.c | ||
ao_sdl.c | ||
ao_sgi.c | ||
ao_sun.c | ||
ao_v4l2.c | ||
ao_win32.c | ||
audio_out.c | ||
audio_out.h | ||
audio_out_internal.h |