FileDocCategorySizeDatePackage
AudioDevicePortConfig.javaAPI DocAndroid 5.1 API1634Thu Mar 12 22:22:30 GMT 2015android.media

AudioDevicePortConfig

public class AudioDevicePortConfig extends AudioPortConfig
An AudioDevicePortConfig describes a possible configuration of an output or input device (speaker, headphone, microphone ...). It is used to specify a sink or source when creating a connection with AudioManager.connectAudioPatch(). An AudioDevicePortConfig is obtained from AudioDevicePort.buildConfig().
hide

Fields Summary
Constructors Summary
AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, int format, AudioGainConfig gain)

        super((AudioPort)devicePort, samplingRate, channelMask, format, gain);
    
AudioDevicePortConfig(AudioDevicePortConfig config)

        this(config.port(), config.samplingRate(), config.channelMask(), config.format(),
                config.gain());
    
Methods Summary
public AudioDevicePortport()
Returns the audio device port this AudioDevicePortConfig is issued from.

        return (AudioDevicePort)mPort;