Skip to content
Snippets Groups Projects
Commit b4192a24 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Fix the problem of long latency at the beginning of transmissions.

parent d04edd7d
No related branches found
No related tags found
No related merge requests found
...@@ -439,6 +439,10 @@ IAXVoIPLink::answer(const CallID& id) ...@@ -439,6 +439,10 @@ IAXVoIPLink::answer(const CallID& id)
call->setState(Call::Active); call->setState(Call::Active);
call->setConnectionState(Call::Connected); call->setConnectionState(Call::Connected);
// Start audio
audiolayer->startStream();
audiolayer->flushMic();
return true; return true;
} }
...@@ -638,6 +642,7 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call) ...@@ -638,6 +642,7 @@ IAXVoIPLink::iaxHandleCallEvent(iax_event* event, IAXCall* call)
} }
Manager::instance().peerAnsweredCall(id); Manager::instance().peerAnsweredCall(id);
audiolayer->flushMic();
audiolayer->startStream(); audiolayer->startStream();
// start audio here? // start audio here?
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment