diff --git a/sflphone-common/src/audio/audiortp/AudioRtpRecordHandler.cpp b/sflphone-common/src/audio/audiortp/AudioRtpRecordHandler.cpp index e7f104fe78a538e019e8c9bf26b8736293f98be6..e5a59b0911f405becc76d138625e35bff63d5d4a 100644 --- a/sflphone-common/src/audio/audiortp/AudioRtpRecordHandler.cpp +++ b/sflphone-common/src/audio/audiortp/AudioRtpRecordHandler.cpp @@ -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; +} } diff --git a/sflphone-common/src/audio/audiortp/AudioRtpSession.h b/sflphone-common/src/audio/audiortp/AudioRtpSession.h index 0c4eec82d311d004e06768b3afb0cc123b92f9e9..272d2b68caf11d2307c945c219406221e4448f25 100644 --- a/sflphone-common/src/audio/audiortp/AudioRtpSession.h +++ b/sflphone-common/src/audio/audiortp/AudioRtpSession.h @@ -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, diff --git a/sflphone-common/src/audio/audiortp/AudioZrtpSession.h b/sflphone-common/src/audio/audiortp/AudioZrtpSession.h index 190aba90603c2336452c02bf2255c777cf2caf6e..8cc55312239835eae3a0f475d8b5a562743e30cd 100644 --- a/sflphone-common/src/audio/audiortp/AudioZrtpSession.h +++ b/sflphone-common/src/audio/audiortp/AudioZrtpSession.h @@ -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,