Agora Java API Reference for Android
|
Public Member Functions | |
boolean | createStreaming (String filename) |
int | getChannelCount () |
int | getSampleRate () |
long | getFileLength () |
long | getCurrentFilePosition () |
void | setCurrentFilePosition (long position) |
boolean | getDecodeDataReadyFlag () |
void | releaseStreaming () |
void | rewindStreaming () |
boolean | decodeFrame () |
boolean | checkAACSupported () |
boolean | createAACStreaming (int sample_rate) |
void | releaseAACStreaming () |
int | decodeAACFrame (byte[] encoded_data) |
Simplifies the MediaCodec interface by wrapping around the buffer processing operations.
boolean io.agora.rtc.audio.MediaCodecAudioDecoder.createStreaming | ( | String | filename | ) |
Open the audio file
int io.agora.rtc.audio.MediaCodecAudioDecoder.getChannelCount | ( | ) |
int io.agora.rtc.audio.MediaCodecAudioDecoder.getSampleRate | ( | ) |
long io.agora.rtc.audio.MediaCodecAudioDecoder.getFileLength | ( | ) |
long io.agora.rtc.audio.MediaCodecAudioDecoder.getCurrentFilePosition | ( | ) |
void io.agora.rtc.audio.MediaCodecAudioDecoder.setCurrentFilePosition | ( | long | position | ) |
set current position within the audio file
boolean io.agora.rtc.audio.MediaCodecAudioDecoder.getDecodeDataReadyFlag | ( | ) |
void io.agora.rtc.audio.MediaCodecAudioDecoder.releaseStreaming | ( | ) |
Releases resources and ends the encoding/decoding session.
void io.agora.rtc.audio.MediaCodecAudioDecoder.rewindStreaming | ( | ) |
Reset the pointer to the beginning of the file
boolean io.agora.rtc.audio.MediaCodecAudioDecoder.decodeFrame | ( | ) |
Decode a frame of audio data, return it in mOutputBuffers
boolean io.agora.rtc.audio.MediaCodecAudioDecoder.checkAACSupported | ( | ) |
Below code are for the hardware aac decoding
boolean io.agora.rtc.audio.MediaCodecAudioDecoder.createAACStreaming | ( | int | sample_rate | ) |
Open the stream for decoding
void io.agora.rtc.audio.MediaCodecAudioDecoder.releaseAACStreaming | ( | ) |
Releases resources and ends the encoding/decoding session.
int io.agora.rtc.audio.MediaCodecAudioDecoder.decodeAACFrame | ( | byte [] | encoded_data | ) |
Decode a frame of audio data, return it in mOutputBuffers