diff options
author | Steve Kondik <steve@cyngn.com> | 2016-04-07 12:35:19 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-04-08 12:24:44 -0700 |
commit | e0554d493e870ea5e323ed06f54becb93c19fa04 (patch) | |
tree | 8af5823e7a5e266812526a608b3080d646e1aba9 /media | |
parent | 726377a9ffe482eb6adc66c7e98007a0c12b6c6c (diff) | |
download | frameworks_base-e0554d493e870ea5e323ed06f54becb93c19fa04.zip frameworks_base-e0554d493e870ea5e323ed06f54becb93c19fa04.tar.gz frameworks_base-e0554d493e870ea5e323ed06f54becb93c19fa04.tar.bz2 |
media: Add flags, channelMask, and UID to audio session callbacks
* This is to allow us to implement more sophisticated logic in
the application on when to apply effects to a stream.
Change-Id: I2931daa1546591e18d98acc91775c1fdafa3d453
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/AudioSystem.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/media/java/android/media/AudioSystem.java b/media/java/android/media/AudioSystem.java index 8bf1604..dca509b 100644 --- a/media/java/android/media/AudioSystem.java +++ b/media/java/android/media/AudioSystem.java @@ -274,7 +274,7 @@ public class AudioSystem */ public interface EffectSessionCallback { - void onSessionAdded(int stream, int sessionId); + void onSessionAdded(int stream, int sessionId, int flags, int channelMask, int uid); void onSessionRemoved(int stream, int sessionId); } @@ -292,7 +292,8 @@ public class AudioSystem } } - private static void effectSessionCallbackFromNative(int event, int stream, int sessionId, boolean added) + private static void effectSessionCallbackFromNative(int event, int stream, int sessionId, + int flags, int channelMask, int uid, boolean added) { EffectSessionCallback cb = null; synchronized (AudioSystem.class) { @@ -304,7 +305,7 @@ public class AudioSystem switch(event) { case AUDIO_OUTPUT_SESSION_EFFECTS_UPDATE: if (added) { - cb.onSessionAdded(stream, sessionId); + cb.onSessionAdded(stream, sessionId, flags, channelMask, uid); } else { cb.onSessionRemoved(stream, sessionId); } |