]> git.sesse.net Git - vlc/commit
equalizer: Optimize calculations of alpha, beta, and gamma constants
authorRonald Wright <logiconcepts819@gmail.com>
Thu, 28 Mar 2013 22:58:47 +0000 (17:58 -0500)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 5 Apr 2013 14:31:16 +0000 (16:31 +0200)
commitdff2e068adb49995628e61ce21a6f4ad073726b4
tree3f49181d160b6651c8c427ff86dc02526eabdd8e
parent5b5d8570b0a676febfb2d49092660f7fff6a9e9c
equalizer: Optimize calculations of alpha, beta, and gamma constants

It is easy to see that the computation of the alpha constant is slightly
inefficient, as the root value can be close to 1 for the lower frequencies,
which would result in significant roundoff error if this value is subtracted
from 1.  In this patch, the computation of the alpha, beta, and gamma constants
has been simplified and refactored.

Acked-by: Ilkka Ollakka <ileoo@videolan.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_filter/equalizer.c