-
public class AudioFormatAudioFormat describes 16-bit signed Linear Pulse Code Modulation (LPCM) audio. This class allows developers to customize the audio format used for audio capturing or rendering.
Supported sample rate values are 8000, 16000, 24000, 32000, 44100 and 48000 Hz. Only mono(number of channels 1) and stereo(number of channels 2) are supported by the SDK
-
-
Field Summary
Fields Modifier and Type Field Description public final static intAUDIO_SAMPLE_RATE_8000public final static intAUDIO_SAMPLE_RATE_16000public final static intAUDIO_SAMPLE_RATE_24000public final static intAUDIO_SAMPLE_RATE_32000public final static intAUDIO_SAMPLE_RATE_44100public final static intAUDIO_SAMPLE_RATE_48000public static intAUDIO_SAMPLE_MONOpublic final static intAUDIO_SAMPLE_STEREOprivate intsampleRateprivate intchannelCount
-
Constructor Summary
Constructors Constructor Description AudioFormat(int sampleRate, int channelCount)
-
Method Summary
Modifier and Type Method Description intgetSampleRate()Returns the sample rate of the audio stream. intgetChannelCount()Returns the number of channels in the audio stream. -
-
Method Detail
-
getSampleRate
int getSampleRate()
Returns the sample rate of the audio stream. Valid values for this property are 8000, 16000,24000, 32000, 44100 and 48000 Hz.
-
getChannelCount
int getChannelCount()
Returns the number of channels in the audio stream.
-
-
-
-