summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioMixer.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-30 14:54:39 -0800
committerGlenn Kasten <gkasten@google.com>2012-02-03 14:42:43 -0800
commitc19e22450e6e3d07594c935c7a9522e85e909e82 (patch)
tree2a81eb366d10425b83b6bbf9997d9c8813515ea1 /services/audioflinger/AudioMixer.h
parent787bae0578fbaab6219ebf23494866b224d01438 (diff)
downloadframeworks_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/AudioMixer.h')
-rw-r--r--services/audioflinger/AudioMixer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioMixer.h b/services/audioflinger/AudioMixer.h
index 84f6330..40a508e 100644
--- a/services/audioflinger/AudioMixer.h
+++ b/services/audioflinger/AudioMixer.h
@@ -33,7 +33,7 @@ class AudioMixer
public:
AudioMixer(size_t frameCount, uint32_t sampleRate);
- ~AudioMixer();
+ /*virtual*/ ~AudioMixer(); // non-virtual saves a v-table, restore if sub-classed
static const uint32_t MAX_NUM_TRACKS = 32;
static const uint32_t MAX_NUM_CHANNELS = 2;