|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.spi.format.Format
org.mobicents.media.server.spi.format.AudioFormat
public class AudioFormat
Descriptor for audio format.
| Constructor Summary | |
|---|---|
protected |
AudioFormat(EncodingName name)
Creates new audio format descriptor. |
| Method Summary | |
|---|---|
AudioFormat |
clone()
|
int |
getChannels()
Gets the number of channels. |
int |
getSampleRate()
Gets the sampling rate. |
int |
getSampleSize()
Gets the sample size. |
boolean |
matches(Format other)
Compares two format descriptors. |
void |
setChannels(int channels)
Modifies number of channels. |
void |
setSampleRate(int sampleRate)
Modifies sampling rate value. |
void |
setSampleSize(int sampleSize)
Modifies sample size. |
String |
toString()
|
| Methods inherited from class org.mobicents.media.server.spi.format.Format |
|---|
getName, getOptions, setName, setOptions |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AudioFormat(EncodingName name)
name - the encoding name.| Method Detail |
|---|
public int getSampleRate()
public void setSampleRate(int sampleRate)
sampleRate - the sampling rate in hertz.public int getSampleSize()
public void setSampleSize(int sampleSize)
sampleSize - sample size in bits.public int getChannels()
public void setChannels(int channels)
channels - the number of channels.public AudioFormat clone()
clone in class Formatpublic boolean matches(Format other)
Format
matches in class Formatother - the another format descriptor
public String toString()
toString in class Format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||