<div bgcolor="#FFFFFF" text="#000000">
On 02/17/2012 11:58 AM, Kaarlo Räihä wrote:
<blockquote type="cite">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.
<div><br>
</div>
<div>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</div>
<div>
<div>main warning: PTS is out of range (-13155), dropping buffer</div>
<div>main warning: buffer too early (-48573), down-sampling</div>
<div>main debug: audio output is too slow (1453031 us):
trashing 49977 us</div>
</div>
<div>...</div>
<div><br>
</div>
<div>If someone knows why this happens, I would like to hear more
about this.</div>
<div><br>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a>
</pre>
</blockquote>
Hello,<br>
<br>
I wish to contribute my piece of code that I wrote 7 months ago.
Not only does the patch implement support for sampling frequencies
other than 44100 Hz and 48000 Hz, it also allows the user to select
between the Winamp frequency bands that are already implemented in
the application and the ISO standard frequency bands (that are based
on a logarithmic scale -- i.e. 31.25 Hz, 62.5 Hz, 125 Hz, 250 Hz,
500 Hz, 1 kHz, 2 kHz, 4 kHz, 8 kHz, and 16 kHz).<br>
<br>
I do not wish to submit this patch yet via git. Instead, I would
like to have the developers review the patch before submission.<br>
<br>
The formula used for calculating the coefficients is based on the
XMMS formula. I used Mathematica to simplify the formula and have
also attached a derivation that demonstrates the simplification.
This leads to efficient computation of the equalizer coefficients
with smaller roundoff errors. I have verified that using this
simplified equation will give you the same coefficients that are
defined in the equalizer module as of right now.<br>
<br>
Regards,<br>
<br>
Ronald Wright<br>
</div>