public class AudioFormat extends Format implements Cloneable
| Modifier | Constructor and Description |
|---|---|
protected |
AudioFormat(EncodingName name)
Creates new audio format descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getName, getOptions, setName, setOptions, setSendPTime, shouldSendPTimeprotected AudioFormat(EncodingName name)
name - the encoding name.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()
public boolean matches(Format other)
FormatCopyright © 2017 TeleStax, Inc.. All Rights Reserved.