From: <ana...@gm...> - 2007-01-24 20:30:41
|
Hi there. I've found that xine resampler is quite buggy. Scenario: ********************************************************* If your soundcard can do only 48khz you shouldn't change xine-config. ********************************************************* find (or add) that line in your xine-config #audio.synchronization.force_rate:0 and change it to: audio.synchronization.force_rate:48000 Now take audio file with sample rate at 22050 Hz and play it using xine-lib (for example, using amarok, it uses xine-lib as playback-engine). Do you hear clicks? Yes, you hear it :) Reason - buggy resampler (or incorrect resampler usage. I've tried to use libsamplerate resampler, but bug remains. I think that happens because resampler resamples only one block, and it doesn't worry about next and previous block (but it have to!), so end of previous block and begin of current block have mismatch). Solution: bypass xine resampler and use one from alsa-lib. btw, alsa has its own resampler, but xine-lib disables it for unknown purpose. Here's patch, that makes xine-lib to use alsa resampler when it's possible. P.S. Don't forget to comment that line in xine-config ;) P.P.S. Sorry for my poor English. |