public class AudioEncoder
extends java.lang.Thread
| Constructor and Description |
|---|
AudioEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeAudio(byte[] data,
int length,
long pts) |
byte[] |
getBuffer(int size,
long lastSentFrameTimestamp,
int currentTimeStamp) |
static long |
getUnsignedInt(long x) |
void |
run() |
boolean |
startAudioEncoder(int sampleRate,
int channelCount,
int bitrate,
int maxInputSize,
IMediaMuxer muxerHandler) |
void |
stopEncoding() |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic boolean startAudioEncoder(int sampleRate,
int channelCount,
int bitrate,
int maxInputSize,
IMediaMuxer muxerHandler)
sampleRate - recommended setting is 44100channelCount - recommended setting is 1bitrate - recommended setting is 64000public void encodeAudio(byte[] data,
int length,
long pts)
public void stopEncoding()
public static long getUnsignedInt(long x)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic byte[] getBuffer(int size,
long lastSentFrameTimestamp,
int currentTimeStamp)