diff options
author | Glenn Kasten <gkasten@google.com> | 2012-01-27 15:25:25 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-01-27 16:01:44 -0800 |
commit | 3d2f877c1cb4e4ae4ddde7f57f4353de9341f11b (patch) | |
tree | 02ba1339028105733ff3897c5c72952781dc793d /services/audioflinger/AudioPolicyService.h | |
parent | a3a2cd4072aaa2d93c91251a786eb7323f8d2c27 (diff) | |
download | frameworks_av-3d2f877c1cb4e4ae4ddde7f57f4353de9341f11b.zip frameworks_av-3d2f877c1cb4e4ae4ddde7f57f4353de9341f11b.tar.gz frameworks_av-3d2f877c1cb4e4ae4ddde7f57f4353de9341f11b.tar.bz2 |
Use ToneGenerator::tone_type consistently
Also remove defaults in startToneCommand(), they're not needed and the
default for tone type was nonsense.
Change-Id: I70fa8cee4f3dbb8c66ceb3719c8d3d2f447f05b9
Diffstat (limited to 'services/audioflinger/AudioPolicyService.h')
-rw-r--r-- | services/audioflinger/AudioPolicyService.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/AudioPolicyService.h b/services/audioflinger/AudioPolicyService.h index 9811670..65ff6ef 100644 --- a/services/audioflinger/AudioPolicyService.h +++ b/services/audioflinger/AudioPolicyService.h @@ -171,7 +171,8 @@ private: virtual bool threadLoop(); void exit(); - void startToneCommand(int type = 0, audio_stream_type_t stream = AUDIO_STREAM_VOICE_CALL); + void startToneCommand(ToneGenerator::tone_type type, + audio_stream_type_t stream); void stopToneCommand(); status_t volumeCommand(audio_stream_type_t stream, float volume, int output, int delayMs = 0); status_t parametersCommand(int ioHandle, const char *keyValuePairs, int delayMs = 0); @@ -198,7 +199,7 @@ private: class ToneData { public: - int mType; // tone type (START_TONE only) + ToneGenerator::tone_type mType; // tone type (START_TONE only) audio_stream_type_t mStream; // stream type (START_TONE only) }; |