4ad39885f2e6e79ae1faaa41ae240eeffcefd368 |
|
15-Mar-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Dynamic audio policies: device type and address Store device type and address in audio mixes regardless of the mix route type, no "registration" field. For LOOP_BACK mixes, assign the REMOTE_SUBMIX device type. Bug 25448664 Change-Id: I8d59b2fd3e05b1dcf1081ad826f985f5e3e74769
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|
e8924115f9a57d35149da89c2a1bd920fdd0fe39 |
|
04-Mar-2016 |
Jean-Michel Trivi <jmtrivi@google.com> |
Dynamic audio policies: allow device passing for RENDER mixes AudioMix: add system method for specifying an AudioDeviceInfo to be used by this mix. This only works for AudioMix instance with the RENDER route flag. Previous dynamic policy implementation didn't enforce mix route flag check, but only supported LOOP_BACK, so make LOOP_BACK the default. When a policy gets registered and the registration ID is set on each mix, for RENDER mixes use the device address for registration. Bug 25448664 Change-Id: If5789d84ff4c4c25a6e81ba1513a39916220498a
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|
1cbf9b3741ec486c3ffce08f145501eb1ca73640 |
|
02-Feb-2016 |
Glenn Kasten <gkasten@google.com> |
Allow sample rate UNSPECIFIED to mean a route-dependent value Bug: 25641253 Bug: 21019153 Change-Id: I3b8e01b6ea09f42c813ab1a0f3f625dc3803cc0b
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|
5a56109d1f5c00404c8f0e4281b9ac1392d72886 |
|
24-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioService receives callback for dynamic policy mix state changes AudioService registers a callback for dynamic policies from AudioSystem. AudioSystem keeps track of a single callback for dynamic policies. Bug 20226914 Change-Id: I48899d20d1dbb47bb680e733a3bc9fd064b60f07
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|
cc98c67ef7f1548766e0b742eb041579e74ba225 |
|
14-Apr-2015 |
Jean-Michel Trivi <jmtrivi@google.com> |
Define AudioMix state constants Bug 20226914 Change-Id: Ie513fcdaaffd4ae3ed7fbd8d24fe8683959739e3
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|
1b3541d5eedb332ea01066b4a78a2d06d5304044 |
|
25-Nov-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
AudioMix address and type, rule exclusion API, dynamic source - Simplify API for defining an exclusion-based rule: don't define an exclusion rule, add instead a way to exclude a rule. - API for defining rules for dynamic sources (rule match on capture preset). - Verify mix type when creating AudioRecord or AudioTrack for a mix. - Use hashcode of mix for generating the device address. - AudioService dump prints info about registered policies. - Annotate as SystemApi the audio policy-related APIs. - Express mixing match and exclude rule constants as flags for future-proofness Bug 16006090 Bug 16009464 Change-Id: I0dabe71204501acaffea7ef0ddbbab9700e1bd87
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|
8fdb0d4defb6ee2ca8057d3442ead36b408b6c17 |
|
17-Jul-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
More AudioPolicy registration Define new usage in AudioAttributes to describe "virtual" sources. Maintain a registration string in AudioPolicy and AudioMix that is used for the address of the mix in the native policy manager. AudioPolicy registration marks the audio policy configuration and the audio mixes as registered. The AudioPolicy class is used as the factory for the AudioTrack and AudioRecord objects that are respectively used as the source and sink of the mixes created by the policy owner. Bug 16009464 Change-Id: I8e5bd351495257597c513d22597e273fcabdbc55
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|
a8b6bd88cfb010c9e9aa1339e504fd593919e1e0 |
|
01-Jul-2014 |
Jean-Michel Trivi <jmtrivi@google.com> |
Define audio policy, mixes, and mixing rules An AudioMixingRule is a collection of AudioAttributes and match/exclude rules. An AudioMix is defined by its AudioMixingRule, AudioFormat and routing flag. An AudioPolicyConfig is a collection of AudioMix and is parcellable. An AudioPolicy has an AudioPolicyConfig, and can be registered/unregistered through AudioManager. bug 16009464 Change-Id: I01bf95d014967f48ba823648ea897779da099e5d
/frameworks/base/media/java/android/media/audiopolicy/AudioMix.java
|