From 617c80a82e5620b2f16348e4bd3d7fc3b76e9021 Mon Sep 17 00:00:00 2001 From: John Grossman Date: Mon, 22 Aug 2011 13:25:06 -0700 Subject: Add a bridge implementation of get_master_volume. Add an implementation of the new get_master_volume method to bridge from the new C only audio HAL to the old C++ legacy audio HAL. Change-Id: I5c29814623b5141b0c69927ea60be9873c8a5dab --- include/hardware_legacy/AudioHardwareInterface.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/hardware_legacy/AudioHardwareInterface.h') diff --git a/include/hardware_legacy/AudioHardwareInterface.h b/include/hardware_legacy/AudioHardwareInterface.h index 847fe6b..425b0a5 100644 --- a/include/hardware_legacy/AudioHardwareInterface.h +++ b/include/hardware_legacy/AudioHardwareInterface.h @@ -210,6 +210,14 @@ public: virtual status_t setMasterVolume(float volume) = 0; /** + * Get the current master volume value for the HAL, if the HAL supports + * master volume control. AudioFlinger will query this value from the + * primary audio HAL when the service starts and use the value for setting + * the initial master volume across all HALs. + */ + virtual status_t getMasterVolume(float *volume) = 0; + + /** * setMode is called when the audio mode changes. NORMAL mode is for * standard audio playback, RINGTONE when a ringtone is playing, and IN_CALL * when a call is in progress. -- cgit v1.1