From 12bd6e4a5c26bd8035bf804d0cc821bd9b8cce9b Mon Sep 17 00:00:00 2001 From: Jean-Michel Trivi Date: Thu, 15 Mar 2012 09:33:34 -0700 Subject: 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 --- include/hardware_legacy/AudioPolicyInterface.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hardware_legacy/AudioPolicyInterface.h') 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; -- cgit v1.1