diff --git a/media/java/android/media/audiopolicy/AudioMixingRule.java b/media/java/android/media/audiopolicy/AudioMixingRule.java index fa3dc7211dea0..611229080e4c6 100644 --- a/media/java/android/media/audiopolicy/AudioMixingRule.java +++ b/media/java/android/media/audiopolicy/AudioMixingRule.java @@ -504,8 +504,22 @@ public class AudioMixingRule { /** * Sets target mix role of the mixing rule. * - *
The mix role indicates playback streams will be captured or recording source will be
- * injected. If not specified, the mix role will be decided automatically when
+ * As each mixing rule is intended to be associated with an {@link AudioMix},
+ * explicitly setting the role of a mixing rule allows this {@link Builder} to
+ * verify validity of the mixing rules to be validated.
+ * The mix role allows distinguishing between:
+ *
If not specified, the mix role will be decided automatically when * {@link #addRule(AudioAttributes, int)} or {@link #addMixRule(int, Object)} be called. * * @param mixRole integer value of {@link #MIX_ROLE_PLAYERS} or {@link #MIX_ROLE_INJECTOR}