[vlc-devel] [PATCH]Equalizer, support other sampling rates than 44100 and 48000

Kaarlo Räihä kaarlo.raiha at gmail.com
Fri Feb 17 18:58:38 CET 2012

Someone noticed (forum post) that Equalizer doesn't work with 96000 Hz
files. So I made patch that calculates the coefficients on fly if sampling
rate is other than 44100 or 48000.

96000 Hz audio now works with Equalizer. Problem is that if sampling rate
is gets somewhere below 26000, the audio vanishes. I tested this only under
Win32 where I get with 25000 Hz file following complains
main warning: PTS is out of range (-13155), dropping buffer
main warning: buffer too early (-48573), down-sampling
main debug: audio output is too slow (1453031 us):  trashing 49977 us

If someone knows why this happens, I would like to hear more about this.

The added code is mostly from GPL projects (calc_bands.c by Felipe Rivera
and solve_quadratic.c by Brian Gough) and rest is by me. It could be
optimized for VLC purposes. I left i_bandcount to EqzComputeCoeffs because
it can be used in future to handle more Eq points.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120217/b70580c5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-sampling-rates-other-than-44100-and-48000.patch
Type: text/x-patch
Size: 7013 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120217/b70580c5/attachment.bin>

More information about the vlc-devel mailing list