org.mobicents.mscontrol.sdp
Class AudioFormat
java.lang.Object
org.mobicents.mscontrol.sdp.Format
org.mobicents.mscontrol.sdp.AudioFormat
- All Implemented Interfaces:
- Serializable, Cloneable
public class AudioFormat
- extends Format
Standard JMF class -- see this class in the JMF Javadoc. Coding complete.
- Author:
- Ken Larson
- See Also:
- Serialized Form
|
Constructor Summary |
AudioFormat(String encoding)
|
AudioFormat(String encoding,
double sampleRate,
int sampleSizeInBits,
int channels)
|
AudioFormat(String encoding,
double sampleRate,
int sampleSizeInBits,
int channels,
int endian,
int signed)
|
AudioFormat(String encoding,
double sampleRate,
int sampleSizeInBits,
int channels,
int endian,
int signed,
int frameSizeInBits,
double frameRate)
|
BIG_ENDIAN
public static final int BIG_ENDIAN
- See Also:
- Constant Field Values
LITTLE_ENDIAN
public static final int LITTLE_ENDIAN
- See Also:
- Constant Field Values
SIGNED
public static final int SIGNED
- See Also:
- Constant Field Values
UNSIGNED
public static final int UNSIGNED
- See Also:
- Constant Field Values
sampleRate
protected double sampleRate
sampleSizeInBits
protected int sampleSizeInBits
channels
protected int channels
endian
protected int endian
signed
protected int signed
frameSizeInBits
protected int frameSizeInBits
LINEAR
public static final String LINEAR
- See Also:
- Constant Field Values
ULAW
public static final String ULAW
- See Also:
- Constant Field Values
ALAW
public static final String ALAW
- See Also:
- Constant Field Values
SPEEX
public static final String SPEEX
- See Also:
- Constant Field Values
IMA4
public static final String IMA4
- See Also:
- Constant Field Values
IMA4_MS
public static final String IMA4_MS
- See Also:
- Constant Field Values
MSADPCM
public static final String MSADPCM
- See Also:
- Constant Field Values
DVI
public static final String DVI
- See Also:
- Constant Field Values
G723
public static final String G723
- See Also:
- Constant Field Values
G728
public static final String G728
- See Also:
- Constant Field Values
G729
public static final String G729
- See Also:
- Constant Field Values
G729A
public static final String G729A
- See Also:
- Constant Field Values
GSM
public static final String GSM
- See Also:
- Constant Field Values
GSM_MS
public static final String GSM_MS
- See Also:
- Constant Field Values
MAC3
public static final String MAC3
- See Also:
- Constant Field Values
MAC6
public static final String MAC6
- See Also:
- Constant Field Values
TRUESPEECH
public static final String TRUESPEECH
- See Also:
- Constant Field Values
MSNAUDIO
public static final String MSNAUDIO
- See Also:
- Constant Field Values
MPEGLAYER3
public static final String MPEGLAYER3
- See Also:
- Constant Field Values
VOXWAREAC8
public static final String VOXWAREAC8
- See Also:
- Constant Field Values
VOXWAREAC10
public static final String VOXWAREAC10
- See Also:
- Constant Field Values
VOXWAREAC16
public static final String VOXWAREAC16
- See Also:
- Constant Field Values
VOXWAREAC20
public static final String VOXWAREAC20
- See Also:
- Constant Field Values
VOXWAREMETAVOICE
public static final String VOXWAREMETAVOICE
- See Also:
- Constant Field Values
VOXWAREMETASOUND
public static final String VOXWAREMETASOUND
- See Also:
- Constant Field Values
VOXWARERT29H
public static final String VOXWARERT29H
- See Also:
- Constant Field Values
VOXWAREVR12
public static final String VOXWAREVR12
- See Also:
- Constant Field Values
VOXWAREVR18
public static final String VOXWAREVR18
- See Also:
- Constant Field Values
VOXWARETQ40
public static final String VOXWARETQ40
- See Also:
- Constant Field Values
VOXWARETQ60
public static final String VOXWARETQ60
- See Also:
- Constant Field Values
MSRT24
public static final String MSRT24
- See Also:
- Constant Field Values
MPEG
public static final String MPEG
- See Also:
- Constant Field Values
DOLBYAC3
public static final String DOLBYAC3
- See Also:
- Constant Field Values
AMR
public static final String AMR
- See Also:
- Constant Field Values
AudioFormat
public AudioFormat(String encoding)
AudioFormat
public AudioFormat(String encoding,
double sampleRate,
int sampleSizeInBits,
int channels)
AudioFormat
public AudioFormat(String encoding,
double sampleRate,
int sampleSizeInBits,
int channels,
int endian,
int signed)
AudioFormat
public AudioFormat(String encoding,
double sampleRate,
int sampleSizeInBits,
int channels,
int endian,
int signed,
int frameSizeInBits,
double frameRate)
getSampleRate
public double getSampleRate()
getSampleSizeInBits
public int getSampleSizeInBits()
getChannels
public int getChannels()
getEndian
public int getEndian()
getSigned
public int getSigned()
getFrameSizeInBits
public int getFrameSizeInBits()
toString
public String toString(boolean asInput)
- Overrides default toString. Flag indicates if output should be equal to
parsed string: dolbyac3, 2, 1, 2;
- Parameters:
asInput -
- true - will return in the exact same way it has been fed: dolbyac3, 2, 1, 2 - this format is defined in rtp media format
- false - will return in format like: dolbyac3, 2.0 Hz, 1-bit, Stereo, Unsigned, 6.0 frame rate
- Returns:
toString
public String toString()
- Overrides:
toString in class Format
equals
public boolean equals(Object format)
- Overrides:
equals in class Format
hashCode
public int hashCode()
- Overrides:
hashCode in class Format
matches
public boolean matches(Format format)
- Overrides:
matches in class Format
matches
public boolean matches(String encoding)
- Overrides:
matches in class Format
clone
public Object clone()
- Overrides:
clone in class Format
Copyright © 2013 TeleStax, Inc.. All Rights Reserved.