public class AudioEncoder extends AbstractEncoder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUDIO_MIME_TYPE |
protected int |
mAudioSource |
protected int |
mChannelCount |
protected int |
mSampleRate |
MIME_TYPE, mIsCapturing, mIsEOS, mMediaCodec, mRecorderStarted, mRequestStop, mSync, mTrackIndex, START_MARK, TIMEOUT_USEC| Constructor and Description |
|---|
AudioEncoder(IRecorder recorder,
EncoderListener listener,
int audio_source,
int audio_channels) |
| Modifier and Type | Method and Description |
|---|---|
protected android.media.MediaFormat |
createOutputFormat(byte[] csd,
int size,
int ix0,
int ix1) |
boolean |
isAudio() |
void |
prepare() |
void |
release()
子クラスでOverrideした時でもEncoder#releaseを呼び出すこと
|
void |
start()
エンコード開始要求(Recorderから呼び出される)
|
byteComp, callOnError, callOnStartEncode, checkProfileLevel, dumpProfileLevel, encode, encode, finalize, frameAvailableSoon, getCodecCapabilities, getCodecCount, getCodecInfoAt, getCodecs, getInputPTSUs, getNextOutputPTSUs, getOutputPath, getProfileLevelString, getRecorder, isCapturing, run, signalEndOfInputStream, startRecorder, stop, stopRecorderpublic static final java.lang.String AUDIO_MIME_TYPE
protected final int mAudioSource
protected final int mChannelCount
protected final int mSampleRate
public AudioEncoder(IRecorder recorder, EncoderListener listener, int audio_source, int audio_channels)
public void prepare()
throws java.lang.Exception
java.lang.Exceptionpublic void start()
AbstractEncoderstart in interface Encoderstart in class AbstractEncoderpublic void release()
AbstractEncoderrelease in interface Encoderrelease in class AbstractEncoderpublic boolean isAudio()
protected android.media.MediaFormat createOutputFormat(byte[] csd,
int size,
int ix0,
int ix1)
createOutputFormat in class AbstractEncoder