public class AudioMediaFormatImpl extends MediaFormatImpl<javax.media.format.AudioFormat> implements AudioMediaFormat
CLOCK_RATE_PNAME, EMPTY_FORMAT_PARAMETERS, ENCODING_PNAME, format, FORMAT_PARAMETERS_PNAME
MAX_DYNAMIC_PAYLOAD_TYPE, MIN_DYNAMIC_PAYLOAD_TYPE, RTP_PAYLOAD_TYPE_UNKNOWN
Constructor and Description |
---|
AudioMediaFormatImpl(javax.media.format.AudioFormat format)
Initializes a new AudioMediaFormatImpl instance which is to
provide an implementation of AudioMediaFormat for a specific
JMF AudioFormat.
|
AudioMediaFormatImpl(javax.media.format.AudioFormat format,
java.util.Map<java.lang.String,java.lang.String> formatParameters,
java.util.Map<java.lang.String,java.lang.String> advancedParameters)
Initializes a new AudioMediaFormatImpl instance which is to
provide an implementation of AudioMediaFormat for a specific
JMF AudioFormat and to have a specific set of format-specific
parameters.
|
AudioMediaFormatImpl(java.lang.String encoding)
Initializes a new AudioMediaFormatImpl instance with the
specified encoding and a single audio channel.
|
AudioMediaFormatImpl(java.lang.String encoding,
double clockRate)
Initializes a new AudioMediaFormatImpl instance with the
specified encoding and clock rate and a single audio channel.
|
AudioMediaFormatImpl(java.lang.String encoding,
double clockRate,
int channels)
Initializes a new AudioMediaFormatImpl instance with the
specified encoding, clock rate and number of audio channels.
|
AudioMediaFormatImpl(java.lang.String encoding,
double clockRate,
int channels,
java.util.Map<java.lang.String,java.lang.String> formatParameters,
java.util.Map<java.lang.String,java.lang.String> advancedParameters)
Initializes a new AudioMediaFormatImpl instance with the
specified encoding, clock rate, number of audio channels and format
parameters.
|
AudioMediaFormatImpl(java.lang.String encoding,
double clockRate,
java.util.Map<java.lang.String,java.lang.String> formatParameters,
java.util.Map<java.lang.String,java.lang.String> advancedParameters)
Initializes a new AudioMediaFormatImpl instance with the
specified encoding, clock rate and format parameters and a single audio
channel.
|
Modifier and Type | Method and Description |
---|---|
int |
getChannels()
Gets the number of audio channels associated with this
AudioMediaFormat.
|
double |
getClockRate()
Gets the clock rate associated with this MediaFormat.
|
MediaType |
getMediaType()
Gets the type of this MediaFormat which is
MediaType.AUDIO for AudioMediaFormatImpl instances. |
advancedAttributesAreEqual, createInstance, createInstance, equals, formatParametersAreEqual, formatParametersAreEqual, formatParametersMatch, getAdditionalCodecSettings, getAdvancedAttributes, getClockRateString, getEncoding, getFormat, getFormatParameters, getJMFEncoding, getRealUsedClockRateString, getRTPPayloadType, hashCode, matches, matches, setAdditionalCodecSettings, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, formatParametersMatch, getAdditionalCodecSettings, getAdvancedAttributes, getClockRateString, getEncoding, getFormatParameters, getRealUsedClockRateString, getRTPPayloadType, matches, matches, setAdditionalCodecSettings, toString
AudioMediaFormatImpl(javax.media.format.AudioFormat format)
format
- the JMF AudioFormat the new instance is to wrap
and provide an implementation of AudioMediaFormat forAudioMediaFormatImpl(javax.media.format.AudioFormat format, java.util.Map<java.lang.String,java.lang.String> formatParameters, java.util.Map<java.lang.String,java.lang.String> advancedParameters)
format
- the JMF AudioFormat the new instance is to wrap
and provide an implementation of AudioMediaFormat forformatParameters
- the set of format-specific parameters of the new
instanceadvancedParameters
- the set of format-specific parameters of the new
instancepublic AudioMediaFormatImpl(java.lang.String encoding)
encoding
- the encoding of the new AudioMediaFormatImpl
instanceAudioMediaFormatImpl(java.lang.String encoding, double clockRate)
encoding
- the encoding of the new AudioMediaFormatImpl
instanceclockRate
- the clock (i.e. sample) rate of the new
AudioMediaFormatImpl instanceAudioMediaFormatImpl(java.lang.String encoding, double clockRate, int channels)
encoding
- the encoding of the new AudioMediaFormatImpl
instanceclockRate
- the clock (i.e. sample) rate of the new
AudioMediaFormatImpl instancechannels
- the number of available channels (1 for mono, 2 for
stereo)AudioMediaFormatImpl(java.lang.String encoding, double clockRate, java.util.Map<java.lang.String,java.lang.String> formatParameters, java.util.Map<java.lang.String,java.lang.String> advancedParameters)
encoding
- the encoding of the new AudioMediaFormatImpl
instanceclockRate
- the clock (i.e. sample) rate of the new
AudioMediaFormatImpl instanceformatParameters
- any codec-specific parameters that have been
received via SIP/SDP or XMPP/Jingle.advancedParameters
- set of advanced parameters that have been
received by SIP/SDP or XMPP/JingleAudioMediaFormatImpl(java.lang.String encoding, double clockRate, int channels, java.util.Map<java.lang.String,java.lang.String> formatParameters, java.util.Map<java.lang.String,java.lang.String> advancedParameters)
encoding
- the encoding of the new AudioMediaFormatImpl
instanceclockRate
- the clock (i.e. sample) rate of the new
AudioMediaFormatImpl instancechannels
- the number of available channels (1 for mono, 2 for
stereo)formatParameters
- any codec-specific parameters that have been
received via SIP/SDP or XMPP/JingleadvancedParameters
- any parameters that have been
received via SIP/SDP or XMPP/Jinglepublic int getChannels()
getChannels
in interface AudioMediaFormat
AudioMediaFormat.getChannels()
public double getClockRate()
getClockRate
in interface MediaFormat
MediaFormat.getClockRate()
public final MediaType getMediaType()
MediaType.AUDIO
for AudioMediaFormatImpl instances.getMediaType
in interface MediaFormat
MediaFormat.getMediaType()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.