Fixing a compiler error in NetEQ
This error would only arise when compiling without support for DTMF (which is not the default config). Review URL: http://webrtc-codereview.appspot.com/310001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1118 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -133,7 +133,9 @@ int WebRtcNetEQ_RecOutInternal(DSPInst_t *inst, WebRtc_Word16 *pw16_outData,
|
||||
WebRtc_Word16 dtmfValue = -1;
|
||||
WebRtc_Word16 dtmfVolume = -1;
|
||||
int playDtmf = 0;
|
||||
#ifdef NETEQ_ATEVENT_DECODE
|
||||
int dtmfSwitch = 0;
|
||||
#endif
|
||||
#ifdef NETEQ_STEREO
|
||||
MasterSlaveInfo *msInfo = inst->msInfo;
|
||||
#endif
|
||||
@@ -1272,6 +1274,7 @@ int WebRtcNetEQ_RecOutInternal(DSPInst_t *inst, WebRtc_Word16 *pw16_outData,
|
||||
|
||||
if (playDtmf != 0)
|
||||
{
|
||||
#ifdef NETEQ_ATEVENT_DECODE
|
||||
WebRtc_Word16 outDataIndex = 0;
|
||||
WebRtc_Word16 overdubLen = -1; /* default len */
|
||||
WebRtc_Word16 dtmfLen;
|
||||
@@ -1280,7 +1283,6 @@ int WebRtcNetEQ_RecOutInternal(DSPInst_t *inst, WebRtc_Word16 *pw16_outData,
|
||||
* Overdub the output with DTMF. Note that this is not executed if the
|
||||
* DSP_INSTR_DTMF_GENERATE operation is performed above.
|
||||
*/
|
||||
#ifdef NETEQ_ATEVENT_DECODE
|
||||
if (inst->DTMFInst.lastDtmfSample - inst->curPosition > 0)
|
||||
{
|
||||
/* special operation for transition from "DTMF only" to "DTMF overdub" */
|
||||
|
||||
Reference in New Issue
Block a user