diff options
author | Glenn Kasten <gkasten@google.com> | 2011-12-20 10:29:49 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-12-20 10:29:49 -0800 |
commit | 12d9702773c8a3242a44dd6528126c9ff0dade43 (patch) | |
tree | a0184b1a6a55a924143411129a4cd13d9dbcaa08 | |
parent | bbaf8673f1d1dd79d1b7f474ca7111da58e84aff (diff) | |
parent | 81a028fef62bcadf13fc8550067a3d29c918b3ca (diff) | |
download | frameworks_av-12d9702773c8a3242a44dd6528126c9ff0dade43.zip frameworks_av-12d9702773c8a3242a44dd6528126c9ff0dade43.tar.gz frameworks_av-12d9702773c8a3242a44dd6528126c9ff0dade43.tar.bz2 |
Merge "Remove dead code"
-rw-r--r-- | services/audioflinger/AudioMixer.cpp | 2 | ||||
-rw-r--r-- | services/audioflinger/AudioMixer.h | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/services/audioflinger/AudioMixer.cpp b/services/audioflinger/AudioMixer.cpp index f5fdee7..89f7b65 100644 --- a/services/audioflinger/AudioMixer.cpp +++ b/services/audioflinger/AudioMixer.cpp @@ -1017,6 +1017,7 @@ void AudioMixer::process__OneTrack16BitsStereoNoResampling(state_t* state) } } +#if 0 // 2 tracks is also a common case // NEVER used in current implementation of process__validate() // only use if the 2 tracks have the same output buffer @@ -1114,6 +1115,7 @@ void AudioMixer::process__TwoTracks16BitsStereoNoResampling(state_t* state) delete [] buff; } } +#endif // ---------------------------------------------------------------------------- }; // namespace android diff --git a/services/audioflinger/AudioMixer.h b/services/audioflinger/AudioMixer.h index 39af103..70464fc 100644 --- a/services/audioflinger/AudioMixer.h +++ b/services/audioflinger/AudioMixer.h @@ -114,11 +114,6 @@ private: NEEDS_AUX_ENABLED = 0x00010000, }; - static inline int32_t applyVolume(int32_t in, int32_t v) { - return in * v; - } - - struct state_t; struct track_t; @@ -198,7 +193,9 @@ private: static void process__genericNoResampling(state_t* state); static void process__genericResampling(state_t* state); static void process__OneTrack16BitsStereoNoResampling(state_t* state); +#if 0 static void process__TwoTracks16BitsStereoNoResampling(state_t* state); +#endif }; // ---------------------------------------------------------------------------- |