summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/AudioPolicyInterface.h
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-03-15 09:33:34 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2012-04-02 09:31:09 -0700
commit12bd6e4a5c26bd8035bf804d0cc821bd9b8cce9b (patch)
tree3073991cdb70440f70dcc2a446f2830f87a0ca5a /include/hardware_legacy/AudioPolicyInterface.h
parent48fa8d5b1c55f7ee0762b5c40176f397cf137875 (diff)
downloadhardware_libhardware_legacy-12bd6e4a5c26bd8035bf804d0cc821bd9b8cce9b.zip
hardware_libhardware_legacy-12bd6e4a5c26bd8035bf804d0cc821bd9b8cce9b.tar.gz
hardware_libhardware_legacy-12bd6e4a5c26bd8035bf804d0cc821bd9b8cce9b.tar.bz2
Only duplicate notifications when no media is playing
Map the NOTIFICATION stream type to a new strategy, named STRATEGY_NOTIFICATION_RESPECTFUL, which differs from STRATEGY_NOTIFICATION in that, when media is playing, the notifications will use the same output as the MEDIA strategy. This will results in the notifications not being duplicated on the speaker when a headset is in use for media playback. Change-Id: I032be0e2d383c69b5b6c912d7174753f5572c4b4
Diffstat (limited to 'include/hardware_legacy/AudioPolicyInterface.h')
-rw-r--r--include/hardware_legacy/AudioPolicyInterface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hardware_legacy/AudioPolicyInterface.h b/include/hardware_legacy/AudioPolicyInterface.h
index d703485..0344c3b 100644
--- a/include/hardware_legacy/AudioPolicyInterface.h
+++ b/include/hardware_legacy/AudioPolicyInterface.h
@@ -214,6 +214,7 @@ public:
// for each output (destination device) it is attached to.
virtual status_t setStreamVolume(AudioSystem::stream_type stream, float volume, audio_io_handle_t output, int delayMs = 0) = 0;
+ // FIXME ignores output, should be renamed to invalidateStreamOuput(stream)
// reroute a given stream type to the specified output
virtual status_t setStreamOutput(AudioSystem::stream_type stream, audio_io_handle_t output) = 0;