Skip to content
Snippets Groups Projects
Commit 30025aa0 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3376] Code cleanup

parent 32e8bb74
No related branches found
No related tags found
No related merge requests found
...@@ -274,11 +274,6 @@ class AudioRtpSession : public ost::Thread, public ost::TimerPort ...@@ -274,11 +274,6 @@ class AudioRtpSession : public ost::Thread, public ost::TimerPort
*/ */
EventQueue _eventQueue; EventQueue _eventQueue;
/**
* Adaptive jitter buffer
*/
jitterbuf * _jbuffer;
/** /**
* Packet size in ms * Packet size in ms
*/ */
...@@ -345,7 +340,6 @@ AudioRtpSession<D>::AudioRtpSession (ManagerImpl * manager, SIPCall * sipcall) : ...@@ -345,7 +340,6 @@ AudioRtpSession<D>::AudioRtpSession (ManagerImpl * manager, SIPCall * sipcall) :
_timestampIncrement (0), _timestampIncrement (0),
_timestampCount (0), _timestampCount (0),
_countNotificationTime (0), _countNotificationTime (0),
_jbuffer (NULL),
_noiseState (NULL), _noiseState (NULL),
_micFadeInComplete (false), _micFadeInComplete (false),
_spkrFadeInComplete (false), _spkrFadeInComplete (false),
...@@ -369,12 +363,6 @@ AudioRtpSession<D>::AudioRtpSession (ManagerImpl * manager, SIPCall * sipcall) : ...@@ -369,12 +363,6 @@ AudioRtpSession<D>::AudioRtpSession (ManagerImpl * manager, SIPCall * sipcall) :
_layerFrameSize = _audiolayer->getFrameSize(); // in ms _layerFrameSize = _audiolayer->getFrameSize(); // in ms
_layerSampleRate = _audiolayer->getSampleRate(); _layerSampleRate = _audiolayer->getSampleRate();
_jbuffer = jb_new();
_jbuffer->info.conf.max_jitterbuf = 1000;
_jbuffer->info.conf.target_extra = 100;
_jbuffer->info.silence_begin_ts = 0;
_ts= 0; _ts= 0;
_packetLength = 20; _packetLength = 20;
_currentTime = 0; _currentTime = 0;
...@@ -428,10 +416,6 @@ AudioRtpSession<D>::~AudioRtpSession() ...@@ -428,10 +416,6 @@ AudioRtpSession<D>::~AudioRtpSession()
_audiocodec = NULL; _audiocodec = NULL;
} }
if (_jbuffer) {
jb_destroy (_jbuffer);
}
if (_noiseState) { if (_noiseState) {
speex_preprocess_state_destroy (_noiseState); speex_preprocess_state_destroy (_noiseState);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment