Package org.jitsi.impl.neomedia.format
Class AudioMediaFormatImpl
- java.lang.Object
-
- org.jitsi.impl.neomedia.format.MediaFormatImpl<javax.media.format.AudioFormat>
-
- org.jitsi.impl.neomedia.format.AudioMediaFormatImpl
-
- All Implemented Interfaces:
AudioMediaFormat,MediaFormat
public class AudioMediaFormatImpl extends MediaFormatImpl<javax.media.format.AudioFormat> implements AudioMediaFormat
Implements AudioMediaFormat for the JMF AudioFormat.- Author:
- Lubomir Marinov
-
-
Field Summary
-
Fields inherited from class org.jitsi.impl.neomedia.format.MediaFormatImpl
CLOCK_RATE_PNAME, ENCODING_PNAME, format, FORMAT_PARAMETERS_PNAME
-
Fields inherited from interface org.jitsi.service.neomedia.format.MediaFormat
MAX_DYNAMIC_PAYLOAD_TYPE, MIN_DYNAMIC_PAYLOAD_TYPE, RTP_PAYLOAD_TYPE_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description AudioMediaFormatImpl(String encoding)Initializes a new AudioMediaFormatImpl instance with the specified encoding and a single audio channel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChannels()Gets the number of audio channels associated with this AudioMediaFormat.doublegetClockRate()Gets the clock rate associated with this MediaFormat.org.jitsi.utils.MediaTypegetMediaType()Gets the type of this MediaFormat which isMediaType.AUDIOfor AudioMediaFormatImpl instances.-
Methods inherited from class org.jitsi.impl.neomedia.format.MediaFormatImpl
advancedAttributesAreEqual, createInstance, createInstance, equals, formatParametersAreEqual, formatParametersAreEqual, formatParametersMatch, getAdditionalCodecSettings, getAdvancedAttributes, getClockRateString, getEncoding, getFormat, getFormatParameters, getJMFEncoding, getRealUsedClockRateString, getRTPPayloadType, hashCode, matches, matches, setAdditionalCodecSettings, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jitsi.service.neomedia.format.MediaFormat
equals, formatParametersMatch, getAdditionalCodecSettings, getAdvancedAttributes, getClockRateString, getEncoding, getFormatParameters, getRealUsedClockRateString, getRTPPayloadType, matches, matches, setAdditionalCodecSettings, toString
-
-
-
-
Constructor Detail
-
AudioMediaFormatImpl
public AudioMediaFormatImpl(String encoding)
Initializes a new AudioMediaFormatImpl instance with the specified encoding and a single audio channel.- Parameters:
encoding- the encoding of the new AudioMediaFormatImpl instance
-
-
Method Detail
-
getChannels
public int getChannels()
Gets the number of audio channels associated with this AudioMediaFormat.- Specified by:
getChannelsin interfaceAudioMediaFormat- Returns:
- the number of audio channels associated with this AudioMediaFormat
- See Also:
AudioMediaFormat.getChannels()
-
getClockRate
public double getClockRate()
Gets the clock rate associated with this MediaFormat.- Specified by:
getClockRatein interfaceMediaFormat- Returns:
- the clock rate associated with this MediaFormat
- See Also:
MediaFormat.getClockRate()
-
getMediaType
public final org.jitsi.utils.MediaType getMediaType()
Gets the type of this MediaFormat which isMediaType.AUDIOfor AudioMediaFormatImpl instances.- Specified by:
getMediaTypein interfaceMediaFormat- Returns:
- the MediaType that this format represents and which is MediaType.AUDIO for AudioMediaFormatImpl instances
- See Also:
MediaFormat.getMediaType()
-
-