public class AudioFormat extends Object
| Constructor and Description |
|---|
AudioFormat()
Creates a new
AudioFormat with zero and null values. |
AudioFormat(SampleFormat sampleFormat,
ChannelLayout channelLayout,
int channels,
int sampleRate)
Creates a new
AudioFormat with specified values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ChannelLayout |
getChannelLayout()
Get the channel layout.
|
int |
getChannels()
Get the number of channels.
|
SampleFormat |
getSampleFormat()
Get the sample format.
|
int |
getSampleRate()
Get the sample rate.
|
void |
setChannelLayout(ChannelLayout channelLayout)
Set the channel layout.
|
void |
setChannels(int channels)
Set the number of channels.
|
void |
setSampleFormat(SampleFormat sampleFormat)
Set the sample format.
|
void |
setSampleRate(int sampleRate)
Set the sample rate.
|
public AudioFormat()
AudioFormat with zero and null values.public AudioFormat(SampleFormat sampleFormat, ChannelLayout channelLayout, int channels, int sampleRate)
AudioFormat with specified values.sampleFormat - the sample format.channelLayout - the channel layout.channels - number of channels.sampleRate - the sample rate.public int getSampleRate()
public void setSampleRate(int sampleRate)
sampleRate - the sample rate to set.public int getChannels()
public void setChannels(int channels)
channels - the number channels to set.public ChannelLayout getChannelLayout()
public void setChannelLayout(ChannelLayout channelLayout)
channelLayout - the channel layout to set.public SampleFormat getSampleFormat()
public void setSampleFormat(SampleFormat sampleFormat)
sampleFormat - the sample format to set.Copyright © 2013. All Rights Reserved.