diff options
author | Glenn Kasten <gkasten@google.com> | 2012-01-30 14:54:39 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-03 14:42:43 -0800 |
commit | c19e22450e6e3d07594c935c7a9522e85e909e82 (patch) | |
tree | 2a81eb366d10425b83b6bbf9997d9c8813515ea1 /services/audioflinger/AudioResamplerSinc.h | |
parent | 787bae0578fbaab6219ebf23494866b224d01438 (diff) | |
download | frameworks_av-c19e22450e6e3d07594c935c7a9522e85e909e82.zip frameworks_av-c19e22450e6e3d07594c935c7a9522e85e909e82.tar.gz frameworks_av-c19e22450e6e3d07594c935c7a9522e85e909e82.tar.bz2 |
Use virtual destructors
It turns out to be just a comment, as all except AudioMixer are RefBase.
There are only a few performance-sensitive cases where it's worth thinking
about whether you need a virtual destructor, and the headache usually
outweighs the benefit.
Change-Id: I716292f9556ec17c29ce8c76ac8ae602cb496533
Diffstat (limited to 'services/audioflinger/AudioResamplerSinc.h')
-rw-r--r-- | services/audioflinger/AudioResamplerSinc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioResamplerSinc.h b/services/audioflinger/AudioResamplerSinc.h index 0e1bc44..f0a07b8 100644 --- a/services/audioflinger/AudioResamplerSinc.h +++ b/services/audioflinger/AudioResamplerSinc.h @@ -31,7 +31,7 @@ class AudioResamplerSinc : public AudioResampler { public: AudioResamplerSinc(int bitDepth, int inChannelCount, int32_t sampleRate); - ~AudioResamplerSinc(); + virtual ~AudioResamplerSinc(); virtual void resample(int32_t* out, size_t outFrameCount, AudioBufferProvider* provider); |