public abstract class AbstractAudioEncoder extends AbstractEncoder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUDIO_MIME_TYPE |
static int |
DEFAULT_BIT_RATE |
static int |
DEFAULT_SAMPLE_RATE |
static int |
FRAMES_PER_BUFFER |
protected int |
mAudioSource |
protected int |
mBitRate |
protected int |
mChannelCount |
protected int |
mSampleRate |
static int |
SAMPLES_PER_FRAME |
MIME_TYPE, mIsCapturing, mIsEOS, mMediaCodec, mRecorderStarted, mRequestStop, mSync, mTrackIndex, START_MARK, TIMEOUT_USEC| Constructor and Description |
|---|
AbstractAudioEncoder(IRecorder recorder,
EncoderListener listener,
int audio_source,
int audio_channels) |
AbstractAudioEncoder(IRecorder recorder,
EncoderListener listener,
int audio_source,
int audio_channels,
int sample_rate,
int bit_rate) |
| Modifier and Type | Method and Description |
|---|---|
protected android.media.MediaFormat |
createOutputFormat(byte[] csd,
int size,
int ix0,
int ix1) |
boolean |
isAudio() |
void |
prepare() |
byteComp, callOnError, callOnStartEncode, checkProfileLevel, dumpProfileLevel, encode, encode, finalize, frameAvailableSoon, getCodecCapabilities, getCodecCount, getCodecInfoAt, getCodecs, getInputPTSUs, getNextOutputPTSUs, getOutputPath, getProfileLevelString, getRecorder, isCapturing, release, run, signalEndOfInputStream, start, startRecorder, stop, stopRecorderpublic static final java.lang.String AUDIO_MIME_TYPE
public static final int DEFAULT_SAMPLE_RATE
public static final int DEFAULT_BIT_RATE
public static final int SAMPLES_PER_FRAME
public static final int FRAMES_PER_BUFFER
protected int mAudioSource
protected int mChannelCount
protected int mSampleRate
protected int mBitRate
public AbstractAudioEncoder(IRecorder recorder, EncoderListener listener, int audio_source, int audio_channels)
public AbstractAudioEncoder(IRecorder recorder, EncoderListener listener, int audio_source, int audio_channels, int sample_rate, int bit_rate)
public void prepare()
throws java.lang.Exception
java.lang.Exceptionpublic final boolean isAudio()
protected android.media.MediaFormat createOutputFormat(byte[] csd,
int size,
int ix0,
int ix1)
createOutputFormat in class AbstractEncoder