diff options
author | Eric Laurent <elaurent@google.com> | 2009-07-28 08:44:33 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2009-08-07 00:27:19 -0700 |
commit | fa2877b9ea48baed934b866d2ab3658b69c4c869 (patch) | |
tree | df0324b64c7dba6cdd6b1f0baa8c14c4f4db09a9 /include/media/AudioSystem.h | |
parent | 285ead29c9eee092d367effd89f1c9f4f0bb9d6c (diff) | |
download | frameworks_av-fa2877b9ea48baed934b866d2ab3658b69c4c869.zip frameworks_av-fa2877b9ea48baed934b866d2ab3658b69c4c869.tar.gz frameworks_av-fa2877b9ea48baed934b866d2ab3658b69c4c869.tar.bz2 |
Fix issue 2001214: AudioFlinger and AudioPolicyService interfaces should not use pointers as handles to inputs and outputs.
Use integers instead of void* as input/output handles at IAudioFlinger and IAudioPolicyService interfaces.
AudioFlinger maintains an always increasing count of opened inputs or outputs as unique ID.
Diffstat (limited to 'include/media/AudioSystem.h')
-rw-r--r-- | include/media/AudioSystem.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index 1243502..1f726fe 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -24,7 +24,7 @@ namespace android { typedef void (*audio_error_callback)(status_t err); -typedef void * audio_io_handle_t; +typedef int audio_io_handle_t; class IAudioPolicyService; class String8; @@ -184,8 +184,8 @@ public: static status_t getMasterMute(bool* mute); // set/get stream volume on specified output - static status_t setStreamVolume(int stream, float value, void *output); - static status_t getStreamVolume(int stream, float* volume, void *output); + static status_t setStreamVolume(int stream, float value, int output); + static status_t getStreamVolume(int stream, float* volume, int output); // mute/unmute stream static status_t setStreamMute(int stream, bool mute); @@ -383,7 +383,7 @@ private: // indicate a change in the configuration of an output or input: keeps the cached // values for output/input parameters upto date in client process - virtual void ioConfigChanged(int event, void *param1, void *param2); + virtual void ioConfigChanged(int event, int ioHandle, void *param2); }; class AudioPolicyServiceClient: public IBinder::DeathRecipient |