diff options
author | Glenn Kasten <gkasten@google.com> | 2012-01-17 11:09:42 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-02-08 10:06:32 -0800 |
commit | 72ef00de10fa95bfcb948ed88ab9b7a177ed0b48 (patch) | |
tree | beeaffd33a57a6cc5fa48f2fa905fc680c4746d1 /media/libmedia/AudioSystem.cpp | |
parent | dbfafaffe2e97eaf8d74ec6b6c468418a1ad2443 (diff) | |
download | frameworks_av-72ef00de10fa95bfcb948ed88ab9b7a177ed0b48.zip frameworks_av-72ef00de10fa95bfcb948ed88ab9b7a177ed0b48.tar.gz frameworks_av-72ef00de10fa95bfcb948ed88ab9b7a177ed0b48.tar.bz2 |
Use audio_io_handle_t consistently instead of int
Other:
- add a comment to nextUniqueId
- made ThreadBase::mId const, since it is only assigned in constructor.
Change-Id: I4e8b7bec4e45badcde6274d574b8a9aabd046837
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r-- | media/libmedia/AudioSystem.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp index 110a294..ec4c044 100644 --- a/media/libmedia/AudioSystem.cpp +++ b/media/libmedia/AudioSystem.cpp @@ -121,7 +121,8 @@ status_t AudioSystem::getMasterMute(bool* mute) return NO_ERROR; } -status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, int output) +status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, + audio_io_handle_t output) { if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); @@ -139,7 +140,8 @@ status_t AudioSystem::setStreamMute(audio_stream_type_t stream, bool mute) return NO_ERROR; } -status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, int output) +status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, + audio_io_handle_t output) { if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE; const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); @@ -402,7 +404,8 @@ void AudioSystem::AudioFlingerClient::binderDied(const wp<IBinder>& who) { ALOGW("AudioFlinger server died!"); } -void AudioSystem::AudioFlingerClient::ioConfigChanged(int event, int ioHandle, void *param2) { +void AudioSystem::AudioFlingerClient::ioConfigChanged(int event, audio_io_handle_t ioHandle, + void *param2) { ALOGV("ioConfigChanged() event %d", event); OutputDescriptor *desc; audio_stream_type_t stream; |