18 #define DETECT_SPKR_OVERFLOW 19 #undef DETECT_SPKR_OVERFLOW 25 #include "os/OsStatus.h" 26 #include "os/OsNotification.h" 27 #include "os/OsMsgQ.h" 60 MprToSpkr(
const UtlString& rName, OsMsgQ *pSpkQ, OsMsgQ *pEchoQ);
74 #ifdef REIMPLEMENT_CLARISIS_EQ 75 enum {EqFilterLen_ix = 24};
77 static int smClarisisHandsetSpeakerEq[EqFilterLen_ix];
82 void SpeakerEqualization_ix(
MpAudioSample* samples,
int iLength);
98 #ifdef DETECT_SPKR_OVERFLOW 99 static int spkrStats();
140 #ifdef DETECT_SPKR_OVERFLOW // [ 142 static int smStatsReports;
157 #endif // DETECT_SPKR_OVERFLOW ] 182 #endif // _MprToSpkr_h_ Definition: MprToSpkr.h:136
Definition: MprToSpkr.h:124
Definition: MprToSpkr.h:72
void(* TOSPEAKERHOOK)(const int nLength, short *samples)
Definition: MprToSpkr.h:40
The "To Speaker" media processing resource.
Definition: MprToSpkr.h:47
static TOSPEAKERHOOK s_fnToSpeakerHook
Definition: MprToSpkr.h:176
virtual ~MprToSpkr()
Destructor.
Definition: MprToSpkr.cpp:145
Definition: MprToSpkr.h:121
Definition: MprToSpkr.h:51
AttenValues
Definition: MprToSpkr.h:85
int mlpVolTable[VOLUME_CONTROL_TABLE_SIZE]
volume levels + a mute level
Definition: MprToSpkr.h:137
uint32_t mulNoiseLevel
Used in comfort noise generation.
Definition: MprToSpkr.h:134
Definition: MprToSpkr.h:53
void initVolTable(void)
Definition: MprToSpkr.cpp:193
MprToSpkr & operator=(const MprToSpkr &rhs)
Assignment operator (not implemented for this class)
MprToSpkr(const UtlString &rName, OsMsgQ *pSpkQ, OsMsgQ *pEchoQ)
Constructor.
Definition: MprToSpkr.cpp:93
int16_t MpAudioSample
Definition: MpTypes.h:44
OsMsgQ * mpSpkQ
Audio data will be sent to this queue.
Definition: MprToSpkr.h:127
0 dB, no attenuation
Definition: MprToSpkr.h:86
Definition: MprToSpkr.h:71
Abstract base class for all audio processing objects.
Definition: MpAudioResource.h:38
Please do not make this lower than -48.
Definition: MprToSpkr.h:87
Definition: MprToSpkr.h:70
static int slVolStep
Definition: MprToSpkr.h:133
virtual UtlBoolean doProcessFrame(MpBufPtr inBufs[], MpBufPtr outBufs[], int inBufsSize, int outBufsSize, UtlBoolean isEnabled, int samplesPerFrame=80, int samplesPerSecond=8000)
This method does the real work for the media processing resource and must be defined in each class de...
Definition: MprToSpkr.cpp:259
Smart pointer to MpBuf.
Definition: MpBuf.h:160
Definition: MprToSpkr.h:52
static int slInitVol
Definition: MprToSpkr.h:132
OsMsgQ * mpEchoQ
Definition: MprToSpkr.h:128
AddlMsgTypes
Definition: MprToSpkr.h:119
UtlBoolean isEnabled() const
Returns TRUE is this resource is currently enabled, FALSE otherwise.
Definition: MpResource.cpp:440
start of resource-specific messages
Definition: MpFlowGraphMsg.h:67