13 #ifndef _MpPlcSilence_h_ 14 #define _MpPlcSilence_h_ 35 OsStatus
init(
int samplesPerSec);
56 unsigned inSamplesNum);
62 unsigned inSamplesNum,
63 unsigned outSamplesNum,
98 #endif //_MpPlcSilence_h_ OsStatus processFrame(MpSpeechParams &speechParams, MpAudioSample *pBuf, unsigned bufferSize, unsigned inSamplesNum, unsigned outSamplesNum, int wantedAdjustment, int &madeAdjustment)
Process next frame - do PLC and/or adjustment if needed.
Definition: MpPlcSilence.cpp:64
Definition: MpPlcBase.h:40
Definition: MpPlcSilence.h:23
OsStatus init(int samplesPerSec)
Initialize PLC with given sample rate and frame size.
Definition: MpPlcSilence.cpp:33
void fullReset()
Full reset followed by init call.
Definition: MpPlcSilence.cpp:48
int16_t MpAudioSample
Definition: MpTypes.h:44
void reset()
Reset.
Definition: MpPlcSilence.cpp:43
~MpPlcSilence()
Destructor.
Definition: MpPlcSilence.cpp:38
int getAlgorithmicDelay() const
Return algorithmic delay in samples, should be called after init.
Definition: MpPlcSilence.cpp:113
int getMaxDelayedFramesNum() const
Return maximum offset for delayed frame with respect to current.
Definition: MpPlcSilence.cpp:103
static const char * name
Definition: MpPlcSilence.h:28
OsStatus insertToHistory(int frameNum, const MpSpeechParams &speechParams, MpAudioSample *pBuf, unsigned inSamplesNum)
Update PLC history with late/future frame.
Definition: MpPlcSilence.cpp:56
int getMaxFutureFramesNum() const
Return maximum offset for future frame with respect to current.
Definition: MpPlcSilence.cpp:108