From ffbc80f5908eaf67a033c6e93a343c39dd6894eb Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Wed, 18 Mar 2015 18:30:19 -0700 Subject: audio policy: volume in dBs Volumes are now stored and exchanged in dBs to be consistent with the volume tables. They are converted if needed when applied to the target gain controller. Change-Id: I916cbb0bbe65c916444b8c65a2bdca9645c58399 --- services/audiopolicy/engine/interface/AudioPolicyManagerInterface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'services/audiopolicy/engine') diff --git a/services/audiopolicy/engine/interface/AudioPolicyManagerInterface.h b/services/audiopolicy/engine/interface/AudioPolicyManagerInterface.h index eadaa77..db0573f 100755 --- a/services/audiopolicy/engine/interface/AudioPolicyManagerInterface.h +++ b/services/audiopolicy/engine/interface/AudioPolicyManagerInterface.h @@ -134,16 +134,16 @@ public: audio_policy_dev_state_t state) = 0; /** - * Translate a volume index given by the UI to an amplification value for a stream type + * Translate a volume index given by the UI to an amplification value in dB for a stream type * and a device category. * * @param[in] deviceCategory for which the conversion is requested. * @param[in] stream type for which the conversion is requested. * @param[in] indexInUi index received from the UI to be translated. * - * @return amplification value matching the UI index for this given device and stream. + * @return amplification value in dB matching the UI index for this given device and stream. */ - virtual float volIndexToAmpl(Volume::device_category deviceCategory, audio_stream_type_t stream, + virtual float volIndexToDb(Volume::device_category deviceCategory, audio_stream_type_t stream, int indexInUi) = 0; /** -- cgit v1.1