diff options
author | Glenn Kasten <gkasten@google.com> | 2012-02-02 14:06:11 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-03 15:25:24 -0800 |
commit | c59c004a3a6042c0990d71179f88eee2ce781e3c (patch) | |
tree | 68e0c9bb6d5bb10a1a8263ebefbb5601946702ee /services/audioflinger/AudioResampler.h | |
parent | 787bae0578fbaab6219ebf23494866b224d01438 (diff) | |
download | frameworks_av-c59c004a3a6042c0990d71179f88eee2ce781e3c.zip frameworks_av-c59c004a3a6042c0990d71179f88eee2ce781e3c.tar.gz frameworks_av-c59c004a3a6042c0990d71179f88eee2ce781e3c.tar.bz2 |
AudioFlinger methods const and inline
This saves 1063 bytes and probably improves performance.
Change-Id: I11cf0dfd925fbaec75e3d1b806852a538eae5518
Diffstat (limited to 'services/audioflinger/AudioResampler.h')
-rw-r--r-- | services/audioflinger/AudioResampler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioResampler.h b/services/audioflinger/AudioResampler.h index ffa690a..b86cdc1 100644 --- a/services/audioflinger/AudioResampler.h +++ b/services/audioflinger/AudioResampler.h @@ -54,7 +54,7 @@ public: AudioBufferProvider* provider) = 0; virtual void reset(); - virtual size_t getUnreleasedFrames() { return mInputIndex; } + virtual size_t getUnreleasedFrames() const { return mInputIndex; } protected: // number of bits for phase fraction - 30 bits allows nearly 2x downsampling |