comparison libao2/ao_alsa.c @ 30410:67b70534caeb

Explain why we still disable the ALSA resampler even though it is probably actually working nowadays.
author reimar
date Thu, 28 Jan 2010 18:26:12 +0000
parents 9fc779fd3721
children 64ba1daa147a
comparison
equal deleted inserted replaced
30409:6eb012e46b63 30410:67b70534caeb
540 snd_strerror(err)); 540 snd_strerror(err));
541 return 0; 541 return 0;
542 } 542 }
543 543
544 /* workaround for buggy rate plugin (should be fixed in ALSA 1.0.11) 544 /* workaround for buggy rate plugin (should be fixed in ALSA 1.0.11)
545 prefer our own resampler */ 545 prefer our own resampler, since that allows users to choose the resampler,
546 even per file if desired */
546 #if SND_LIB_VERSION >= 0x010009 547 #if SND_LIB_VERSION >= 0x010009
547 if ((err = snd_pcm_hw_params_set_rate_resample(alsa_handler, alsa_hwparams, 548 if ((err = snd_pcm_hw_params_set_rate_resample(alsa_handler, alsa_hwparams,
548 0)) < 0) 549 0)) < 0)
549 { 550 {
550 mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_UnableToDisableResampling, 551 mp_msg(MSGT_AO,MSGL_ERR,MSGTR_AO_ALSA_UnableToDisableResampling,