summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-08-27 00:49:14 -0700
committerEric Laurent <elaurent@google.com>2009-08-27 05:51:04 -0700
commit721365e3e7902598b94f177b1c96afc688a70c0a (patch)
treebe87c53698fabf13c4a420dc35135343ef4d7324 /include
parent61a902e46eebb3b75e03e7d4468040be9ae6b82b (diff)
downloadhardware_libhardware_legacy-721365e3e7902598b94f177b1c96afc688a70c0a.zip
hardware_libhardware_legacy-721365e3e7902598b94f177b1c96afc688a70c0a.tar.gz
hardware_libhardware_legacy-721365e3e7902598b94f177b1c96afc688a70c0a.tar.bz2
Fix issue 2045911: Camera Shutter tone does not play correctly while listening to music.
Add the possibility to delay routing and volume commands in AudioPolicyClientInterface. The delay is not blocking for the caller.
Diffstat (limited to 'include')
-rw-r--r--include/hardware_legacy/AudioPolicyInterface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hardware_legacy/AudioPolicyInterface.h b/include/hardware_legacy/AudioPolicyInterface.h
index 57a60ae..1a9aff5 100644
--- a/include/hardware_legacy/AudioPolicyInterface.h
+++ b/include/hardware_legacy/AudioPolicyInterface.h
@@ -175,13 +175,13 @@ public:
// set a stream volume for a particular output. For the same user setting, a given stream type can have different volumes
// for each output (destination device) it is attached to.
- virtual status_t setStreamVolume(AudioSystem::stream_type stream, float volume, audio_io_handle_t output) = 0;
+ virtual status_t setStreamVolume(AudioSystem::stream_type stream, float volume, audio_io_handle_t output, int delayMs = 0) = 0;
// reroute a given stream type to the specified output
virtual status_t setStreamOutput(AudioSystem::stream_type stream, audio_io_handle_t output) = 0;
// function enabling to send proprietary informations directly from audio policy manager to audio hardware interface.
- virtual void setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs) = 0;
+ virtual void setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs, int delayMs = 0) = 0;
// function enabling to receive proprietary informations directly from audio hardware interface to audio policy manager.
virtual String8 getParameters(audio_io_handle_t ioHandle, const String8& keys) = 0;