public final class AudioProperty extends Object
getRecorderNumChannels() obtains the number of audio channels.
getRecorderAudioEncoder() obtains the audio encoding format.
getRecorderBitRate() obtains the audio encoding bit rate.
getRecorderSamplingRate() obtains the audio sampling rate.
SystemCapability.Multimedia#MEDIA| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
AudioProperty.Builder |
Static inner class of
AudioProperty to create an AudioProperty object. |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
AUDIO_ENCODER_INIT |
Indicates the default audio encoding format.
|
static int |
BIT_RATE_INIT |
Indicates the default audio encoding bit rate.
|
static int |
NUM_CHANNELS_INIT |
Indicates the default number of audio channels.
|
static int |
SAMPLING_RATE_INIT |
Indicates the default audio sampling rate.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getRecorderAudioEncoder() |
Obtains the audio encoding format.
|
int |
getRecorderBitRate() |
Obtains the audio encoding bit rate.
|
int |
getRecorderNumChannels() |
Obtains the number of audio channels.
|
int |
getRecorderSamplingRate() |
Obtains the audio sampling rate.
|
public static final int AUDIO_ENCODER_INIT
public static final int BIT_RATE_INIT
public static final int NUM_CHANNELS_INIT
public static final int SAMPLING_RATE_INIT
public int getRecorderNumChannels()
public int getRecorderAudioEncoder()
public int getRecorderBitRate()
public int getRecorderSamplingRate()