|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.format.MediaFormatImpl<javax.media.format.AudioFormat>
net.java.sip.communicator.impl.neomedia.format.AudioMediaFormatImpl
public class AudioMediaFormatImpl
Implements AudioMediaFormat for the JMF AudioFormat.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.neomedia.format.MediaFormatImpl |
|---|
CLOCK_RATE_PNAME, EMPTY_CODEC_SETTINGS, EMPTY_FORMAT_PARAMETERS, ENCODING_PNAME, format, FORMAT_PARAMETERS_PNAME |
| Fields inherited from interface net.java.sip.communicator.service.neomedia.format.MediaFormat |
|---|
MAX_DYNAMIC_PAYLOAD_TYPE, MIN_DYNAMIC_PAYLOAD_TYPE, RTP_PAYLOAD_TYPE_UNKNOWN |
| Constructor Summary | |
|---|---|
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,
Map<String,String> formatParameters,
Map<String,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(String encoding)
Initializes a new AudioMediaFormatImpl instance with the specified encoding and a single audio channel. |
|
AudioMediaFormatImpl(String encoding,
double clockRate)
Initializes a new AudioMediaFormatImpl instance with the specified encoding and clock rate and a single audio channel. |
|
AudioMediaFormatImpl(String encoding,
double clockRate,
int channels)
Initializes a new AudioMediaFormatImpl instance with the specified encoding, clock rate and number of audio channels. |
|
AudioMediaFormatImpl(String encoding,
double clockRate,
int channels,
Map<String,String> formatParameters,
Map<String,String> advancedParameters)
Initializes a new AudioMediaFormatImpl instance with the specified encoding, clock rate, number of audio channels and format parameters. |
|
AudioMediaFormatImpl(String encoding,
double clockRate,
Map<String,String> formatParameters,
Map<String,String> advancedParameters)
Initializes a new AudioMediaFormatImpl instance with the specified encoding, clock rate and format parameters and a single audio channel. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.format.MediaFormatImpl |
|---|
advancedAttributesAreEqual, createInstance, createInstance, equals, formatParametersAreEqual, formatParametersAreEqual, formatParametersMatch, getAdditionalCodecSettings, getAdvancedAttributes, getClockRateString, getEncoding, getFormat, getFormatParameters, getJMFEncoding, getRealUsedClockRateString, getRTPPayloadType, hashCode, setAdditionalCodecSettings, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.neomedia.format.MediaFormat |
|---|
equals, formatParametersMatch, getAdditionalCodecSettings, getAdvancedAttributes, getClockRateString, getEncoding, getFormatParameters, getRealUsedClockRateString, getRTPPayloadType, setAdditionalCodecSettings, toString |
| Constructor Detail |
|---|
AudioMediaFormatImpl(javax.media.format.AudioFormat format)
format - the JMF AudioFormat the new instance is to wrap
and provide an implementation of AudioMediaFormat for
AudioMediaFormatImpl(javax.media.format.AudioFormat format,
Map<String,String> formatParameters,
Map<String,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(String encoding)
encoding - the encoding of the new AudioMediaFormatImpl
instance
AudioMediaFormatImpl(String encoding,
double clockRate)
encoding - the encoding of the new AudioMediaFormatImpl
instanceclockRate - the clock (i.e. sample) rate of the new
AudioMediaFormatImpl instance
AudioMediaFormatImpl(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(String encoding,
double clockRate,
Map<String,String> formatParameters,
Map<String,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/Jingle
AudioMediaFormatImpl(String encoding,
double clockRate,
int channels,
Map<String,String> formatParameters,
Map<String,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/Jingle| Method Detail |
|---|
public int getChannels()
getChannels in interface AudioMediaFormatAudioMediaFormat.getChannels()public double getClockRate()
getClockRate in interface MediaFormatMediaFormat.getClockRate()public final MediaType getMediaType()
MediaType.AUDIO for AudioMediaFormatImpl instances.
getMediaType in interface MediaFormatMediaFormat.getMediaType()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||