public class MediaAudioEncoder extends MediaEncoder
| Modifier and Type | Field and Description |
|---|---|
static int |
FRAMES_PER_BUFFER |
static int |
SAMPLES_PER_FRAME |
mIsAudio, mIsCapturing, mIsEOS, mIsPrepared, mMediaCodec, mMuxerStarted, mRequestStop, mSync, mTrackIndex, mWeakMuxerTIMEOUT_USEC| Constructor and Description |
|---|
MediaAudioEncoder(MediaMovieRecorder muxer,
IMediaCodecCallback listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
prepare() |
void |
release()
Release all related objects
|
void |
start() |
callErrorHandler, callOnPrepared, callOnRelease, callOnStart, callOnStop, drain, encode, frameAvailableSoon, getPTSUs, isAudio, isPrepared, isRunning, signalEndOfInputStream, stoppublic static final int SAMPLES_PER_FRAME
public static final int FRAMES_PER_BUFFER
public MediaAudioEncoder(MediaMovieRecorder muxer, IMediaCodecCallback listener)
public void prepare()
throws java.io.IOException
java.io.IOExceptionpublic void start()
start in interface IMediaCodecstart in class MediaEncoderpublic void release()
MediaEncoderrelease in interface IMediaCodecrelease in class MediaEncoder