Skip to content
Snippets Groups Projects
Commit 71d6b7bf authored by asavard's avatar asavard
Browse files

[#4367] Fix AudioRtpSession putDtmfEvent shadowing

parent 1eb894dc
Branches
Tags
No related merge requests found
......@@ -475,22 +475,22 @@ void AudioRtpRecordHandler::processDataDecode(unsigned char *spkrData, unsigned
}
}
bool AudioRtpRecordHandler::fadeIn(SFLDataFormat *audio, int size, SFLDataFormat *factor)
{
// apply amplitude factor;
while(size){
size--;
audio[size] /= *factor;
}
// decrease factor
*factor /= FADEIN_STEP_SIZE
;
// if factor reach 0, thsi function should no be called anymore
if(*factor == 0)
return true;
return false;
}
bool AudioRtpRecordHandler::fadeIn(SFLDataFormat *audio, int size, SFLDataFormat *factor)
{
// apply amplitude factor;
while(size){
size--;
audio[size] /= *factor;
}
// decrease factor
*factor /= FADEIN_STEP_SIZE;
// if factor reach 0, thsi function should no be called anymore
if(*factor == 0)
return true;
return false;
}
}
......@@ -78,8 +78,6 @@ class AudioRtpSession : public ost::TimerPort, public ost::SymmetricRTPSession,
*/
void updateDestinationIpAddress (void);
void putDtmfEvent (int digit);
/**
* Send DTMF over RTP (RFC2833). The timestamp and sequence number must be
* incremented as if it was microphone audio. This function change the payload type of the rtp session,
......
......@@ -64,8 +64,6 @@ class AudioZrtpSession : public ost::TimerPort, public ost::SymmetricZRTPSession
*/
void updateDestinationIpAddress (void);
void putDtmfEvent (int digit);
/**
* Send DTMF over RTP (RFC2833). The timestamp and sequence number must be
* incremented as if it was microphone audio. This function change the payload type of the rtp session,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment