/**@class android.media.AudioPort
@extends java.lang.Object

 An audio port is a node of the audio framework or hardware that can be connected to or
 disconnect from another audio node to create a specific audio routing configuration.
 Examples of audio ports are an output device (speaker) or an output mix (see AudioMixPort).
 All attributes that are relevant for applications to make routing selection are described
 in an AudioPort,  in particular:
 - possible channel mask configurations.
 - audio format (PCM 16bit, PCM 24bit...)
 - gain: a port can be associated with one or more gain controllers (see AudioGain).

 This object is always created by the framework and read only by applications.
 A list of all audio port descriptors currently available for applications to control
 is obtained by AudioManager.listAudioPorts().
 An application can obtain an AudioPortConfig for a valid configuration of this port
 by calling AudioPort.buildConfig() and use this configuration
 to create a connection between audio sinks and sources with AudioManager.connectAudioPatch()

 @hide
*/
var AudioPort = {

/** For use by the audio framework.
*/
ROLE_NONE : "0",
/** The audio port is a source (produces audio)
*/
ROLE_SOURCE : "1",
/** The audio port is a sink (consumes audio)
*/
ROLE_SINK : "2",
/** audio port type for use by audio framework implementation
*/
TYPE_NONE : "0",
/***/
TYPE_DEVICE : "1",
/***/
TYPE_SUBMIX : "2",
/***/
TYPE_SESSION : "3",
/**Get the system unique device ID.
*/
id : function(  ) {},

/**Get the audio port role
*/
role : function(  ) {},

/**Get the human-readable name of this port. Perhaps an internal
 designation or an physical device.
*/
name : function(  ) {},

/**Get the list of supported sampling rates
 Empty array if sampling rate is not relevant for this audio port
*/
samplingRates : function(  ) {},

/**Get the list of supported channel mask configurations
 (e.g AudioFormat.CHANNEL_OUT_STEREO)
 Empty array if channel mask is not relevant for this audio port
*/
channelMasks : function(  ) {},

/**Get the list of supported channel index mask configurations
 (e.g 0x0003 means 2 channel, 0x000F means 4 channel....)
 Empty array if channel index mask is not relevant for this audio port
*/
channelIndexMasks : function(  ) {},

/**Get the list of supported audio format configurations
 (e.g AudioFormat.ENCODING_PCM_16BIT)
 Empty array if format is not relevant for this audio port
*/
formats : function(  ) {},

/**Get the list of gain descriptors
 Empty array if this port does not have gain control
*/
gains : function(  ) {},

/**Build a specific configuration of this audio port for use by methods
 like AudioManager.connectAudioPatch().
@param {Number} samplingRate
@param {Number} channelMask The desired channel mask. AudioFormat.CHANNEL_OUT_DEFAULT if no change
 from active configuration requested.
@param {Number} format The desired audio format. AudioFormat.ENCODING_DEFAULT if no change
 from active configuration requested.
@param {Object {AudioGainConfig}} gain The desired gain. null if no gain changed requested.
*/
buildConfig : function(  ) {},

/**Get currently active configuration of this audio port.
*/
activeConfig : function(  ) {},

/**
*/
equals : function(  ) {},

/**
*/
hashCode : function(  ) {},

/**
*/
toString : function(  ) {},


};