public class MediaAudioEncoder extends MediaEncoder implements IAudioEncoder
MediaEncoder.MediaEncoderListener| Modifier and Type | Field and Description |
|---|---|
static int |
FRAMES_PER_BUFFER |
static int |
SAMPLES_PER_FRAME |
mIsCapturing, mIsEOS, mListener, mMediaCodec, mMuxerStarted, mRequestStop, MSG_FRAME_AVAILABLE, MSG_STOP_RECORDING, mSync, mTrackIndex, mWeakMuxer, TIMEOUT_USEC| Constructor and Description |
|---|
MediaAudioEncoder(MediaMuxerWrapper muxer,
MediaEncoder.MediaEncoderListener listener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
prepare() |
protected void |
release()
Release all releated objects
|
protected void |
startRecording() |
drain, encode, encode, frameAvailableSoon, getOutputPath, getPTSUs, run, signalEndOfInputStreampublic static final int SAMPLES_PER_FRAME
public static final int FRAMES_PER_BUFFER
public MediaAudioEncoder(MediaMuxerWrapper muxer, MediaEncoder.MediaEncoderListener listener)
protected void prepare()
throws java.io.IOException
java.io.IOExceptionprotected void startRecording()
protected void release()
MediaEncoderrelease in class MediaEncoder