diff options
author | Eric Laurent <elaurent@google.com> | 2010-02-16 06:06:46 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-02-16 06:06:46 -0800 |
commit | e6c221466fe4ec2940c672126999d28ce01a49f1 (patch) | |
tree | 81f12fe90e63ffc2ed40d89e464e6b652e357a83 | |
parent | 007404c68f5cf6328e30b6d0edac3fd52ef36abb (diff) | |
download | libhardware_legacy-e6c221466fe4ec2940c672126999d28ce01a49f1.tar.gz |
Fix issue 2440226: Car dock volume synchronization.
Make computeVolume() method virtual so that its implementation can be platform specific.
-rw-r--r-- | include/hardware_legacy/AudioPolicyManagerBase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h index fd4f868..de32926 100644 --- a/include/hardware_legacy/AudioPolicyManagerBase.h +++ b/include/hardware_legacy/AudioPolicyManagerBase.h @@ -190,7 +190,7 @@ protected: audio_io_handle_t getActiveInput(); // compute the actual volume for a given stream according to the requested index and a particular // device - float computeVolume(int stream, int index, audio_io_handle_t output, uint32_t device); + virtual float computeVolume(int stream, int index, audio_io_handle_t output, uint32_t device); // check that volume change is permitted, compute and send new volume to audio hardware status_t checkAndSetVolume(int stream, int index, audio_io_handle_t output, uint32_t device, int delayMs = 0, bool force = false); // apply all stream volumes to the specified output and device |