diff options
author | Glenn Kasten <gkasten@google.com> | 2011-05-05 08:19:00 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2011-12-16 13:28:33 -0800 |
commit | 788040c5189bbdaf567ce4b29ffd1db08ea1020c (patch) | |
tree | 75cf254063bf823fd2e5ff6c3504ecc2c37bb488 /services/audioflinger/AudioMixer.h | |
parent | 154a7fbda9b704bc1d23b6f17573016ebb5989be (diff) | |
download | frameworks_av-788040c5189bbdaf567ce4b29ffd1db08ea1020c.zip frameworks_av-788040c5189bbdaf567ce4b29ffd1db08ea1020c.tar.gz frameworks_av-788040c5189bbdaf567ce4b29ffd1db08ea1020c.tar.bz2 |
Use switch in AudioMixer::setParameter
Replace series of if/then/elses by easier-to-read switch. Also return
void instead of status_t, since callers weren't checking it. Assert on
bad input parameters.
Change-Id: Ie1f0a297977b28501d20e1af819afed9b4750616
Diffstat (limited to 'services/audioflinger/AudioMixer.h')
-rw-r--r-- | services/audioflinger/AudioMixer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioMixer.h b/services/audioflinger/AudioMixer.h index f380b35..288c70e 100644 --- a/services/audioflinger/AudioMixer.h +++ b/services/audioflinger/AudioMixer.h @@ -81,7 +81,7 @@ public: void disable(); void setActiveTrack(int track); - status_t setParameter(int target, int name, void *value); + void setParameter(int target, int name, void *value); void setBufferProvider(AudioBufferProvider* bufferProvider); void process(); |