summaryrefslogtreecommitdiffstats
path: root/libs/audioflinger/AudioDSP.h
diff options
context:
space:
mode:
authorAntti S. Lankila <alankila@gmail.com>2010-09-02 00:16:41 +0300
committerAntti S. Lankila <alankila@gmail.com>2010-09-02 00:40:50 +0300
commita2284ac53742d74a27f041339f6528afe5f87e50 (patch)
tree3bf45686c6f4c5c3e1f608bba5efc799ae34922f /libs/audioflinger/AudioDSP.h
parent57e7bb29dcf918b965b5676c9b80426d1f9a7139 (diff)
downloadframeworks_base-a2284ac53742d74a27f041339f6528afe5f87e50.zip
frameworks_base-a2284ac53742d74a27f041339f6528afe5f87e50.tar.gz
frameworks_base-a2284ac53742d74a27f041339f6528afe5f87e50.tar.bz2
Make Headphone DSP with just 1 biquad
Subtracting the left and right channels could be argued to separate the center channel from the left/right channel and the DSP therefore gets applied to panned sounds only. This halves the cost of the filtering and eliminates the bass boost issue that bs2b compensates for with a highboost filter. I also adjusted the delay-to-level spatial filter to try to get slightly more consistent perception of panning across the frequency spectrum.
Diffstat (limited to 'libs/audioflinger/AudioDSP.h')
-rw-r--r--libs/audioflinger/AudioDSP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/audioflinger/AudioDSP.h b/libs/audioflinger/AudioDSP.h
index e1b0933..a962ba7 100644
--- a/libs/audioflinger/AudioDSP.h
+++ b/libs/audioflinger/AudioDSP.h
@@ -120,7 +120,7 @@ class EffectHeadphone : public Effect {
Delay mReverbDelayL, mReverbDelayR;
int32_t mDelayDataL, mDelayDataR;
- Biquad mLowpassL, mLowpassR;
+ Biquad mLowpass;
public:
EffectHeadphone();