-
- All Implemented Interfaces:
-
java.lang.Runnable
public class MediaDataPlayer extends Thread
-
-
Field Summary
Fields Modifier and Type Field Description public static intclippingToOrgVoicepublic static LinkedList<Array<short>>recordQueue
-
Method Summary
Modifier and Type Method Description static MediaDataPlayergetMediaPlayer(SIPProvider provider)voidrun()voidinitPlayer(String callID)voidpausePlayer()voidresetPlayer()voidreleasePlayer()voidstartBluetooth()voidstopBluetooth()voidstartSpeaker()voidstopSpeaker()static voidapplyGain(Array<short> lin, int off, int len, double dbGainFromRims)voidgenerateCNG(Array<short> samples, int size)static booleanechoGeneratedByGainforDevice()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, stop, suspend, toString, yield -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMediaPlayer
static MediaDataPlayer getMediaPlayer(SIPProvider provider)
-
run
void run()
-
initPlayer
void initPlayer(String callID)
-
pausePlayer
void pausePlayer()
-
resetPlayer
void resetPlayer()
-
releasePlayer
void releasePlayer()
-
startBluetooth
void startBluetooth()
-
stopBluetooth
void stopBluetooth()
-
startSpeaker
void startSpeaker()
-
stopSpeaker
void stopSpeaker()
-
generateCNG
void generateCNG(Array<short> samples, int size)
-
echoGeneratedByGainforDevice
static boolean echoGeneratedByGainforDevice()
-
-
-
-