FileDocCategorySizeDatePackage
AudioMix.javaAPI DocAndroid 5.1 API7017Thu Mar 12 22:22:30 GMT 2015android.media.audiopolicy

AudioMix

public class AudioMix extends Object
hide

Fields Summary
private AudioMixingRule
mRule
private android.media.AudioFormat
mFormat
private int
mRouteFlags
private String
mRegistrationId
private int
mMixType
public static final int
ROUTE_FLAG_RENDER
An audio mix behavior where the output of the mix is sent to the original destination of the audio signal, i.e. an output device for an output mix, or a recording for an input mix.
public static final int
ROUTE_FLAG_LOOP_BACK
An audio mix behavior where the output of the mix is rerouted back to the framework and is accessible for injection or capture through the {@link AudioTrack} and {@link AudioRecord} APIs.
public static final int
MIX_TYPE_INVALID
public static final int
MIX_TYPE_PLAYERS
public static final int
MIX_TYPE_RECORDERS
Constructors Summary
private AudioMix(AudioMixingRule rule, android.media.AudioFormat format, int routeFlags)
All parameters are guaranteed valid through the Builder.


                 
           
        mRule = rule;
        mFormat = format;
        mRouteFlags = routeFlags;
        mRegistrationId = null;
        mMixType = rule.getTargetMixType();
    
Methods Summary
android.media.AudioFormatgetFormat()

        return mFormat;
    
public intgetMixType()

hide

        return mMixType;
    
public java.lang.StringgetRegistration()

hide

        return mRegistrationId;
    
intgetRouteFlags()


      
        return mRouteFlags;
    
AudioMixingRulegetRule()

        return mRule;
    
public inthashCode()

hide

        return Objects.hash(mRouteFlags, mRule, mMixType, mFormat);
    
voidsetRegistration(java.lang.String regId)

        mRegistrationId = regId;