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

[#4896] Update session timestamp when updating media

parent 75cb8f2f
Branches
Tags
No related merge requests found
...@@ -47,7 +47,7 @@ namespace sfl ...@@ -47,7 +47,7 @@ namespace sfl
// Factor use to increase volume in fade in // Factor use to increase volume in fade in
#define FADEIN_STEP_SIZE 4; #define FADEIN_STEP_SIZE 4;
static const int schedulingTimeout = 10000; static const int schedulingTimeout = 4000;
static const int expireTimeout = 1000000; static const int expireTimeout = 1000000;
// G.722 VoIP is typically carried in RTP payload type 9.[2] Note that IANA records the clock rate for type 9 G.722 as 8 kHz // G.722 VoIP is typically carried in RTP payload type 9.[2] Note that IANA records the clock rate for type 9 G.722 as 8 kHz
......
...@@ -175,6 +175,8 @@ void AudioRtpSession::updateSessionMedia (AudioCodec *audioCodec) ...@@ -175,6 +175,8 @@ void AudioRtpSession::updateSessionMedia (AudioCodec *audioCodec)
// Set recording sampling rate // Set recording sampling rate
_ca->setRecordingSmplRate (getCodecSampleRate()); _ca->setRecordingSmplRate (getCodecSampleRate());
_timestamp = getCurrentTimestamp();
} }
...@@ -350,6 +352,8 @@ void AudioRtpSession::run () ...@@ -350,6 +352,8 @@ void AudioRtpSession::run ()
uint32 timeout = 0; uint32 timeout = 0;
_timestamp = getCurrentTimestamp();
while (isActive()) { while (isActive()) {
if (timeout < 1000) { // !(timeout/1000) if (timeout < 1000) { // !(timeout/1000)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment