public class AudioFormat extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_SAMPLE_MONO |
static int |
AUDIO_SAMPLE_RATE_16000 |
static int |
AUDIO_SAMPLE_RATE_24000 |
static int |
AUDIO_SAMPLE_RATE_32000 |
static int |
AUDIO_SAMPLE_RATE_44100 |
static int |
AUDIO_SAMPLE_RATE_48000 |
static int |
AUDIO_SAMPLE_RATE_8000 |
static int |
AUDIO_SAMPLE_STEREO |
Constructor and Description |
---|
AudioFormat(int sampleRate,
int channelCount) |
Modifier and Type | Method and Description |
---|---|
int |
getChannelCount()
Returns the number of channels in the audio stream.
|
int |
getSampleRate()
Returns the sample rate of the audio stream.
|
public static final int AUDIO_SAMPLE_RATE_8000
public static final int AUDIO_SAMPLE_RATE_16000
public static final int AUDIO_SAMPLE_RATE_24000
public static final int AUDIO_SAMPLE_RATE_32000
public static final int AUDIO_SAMPLE_RATE_44100
public static final int AUDIO_SAMPLE_RATE_48000
public static int AUDIO_SAMPLE_MONO
public static final int AUDIO_SAMPLE_STEREO
public int getSampleRate()
public int getChannelCount()
5.3.0