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

[#4078] Add audio layer mutex in iax in case internal audio sampling rate is changed

parent 005b3c0c
No related branches found
No related tags found
No related merge requests found
...@@ -245,6 +245,8 @@ IAXVoIPLink::getEvent() ...@@ -245,6 +245,8 @@ IAXVoIPLink::getEvent()
{ {
IAXCall* call = NULL; IAXCall* call = NULL;
Manager::instance().getAudioLayerMutex()->enter();
// lock iax_ stuff.. // lock iax_ stuff..
_mutexIAX.enterMutex(); _mutexIAX.enterMutex();
iax_event* event = NULL; iax_event* event = NULL;
...@@ -280,6 +282,8 @@ IAXVoIPLink::getEvent() ...@@ -280,6 +282,8 @@ IAXVoIPLink::getEvent()
sendAudioFromMic(); sendAudioFromMic();
Manager::instance().getAudioLayerMutex()->leave();
// Do the doodle-moodle to send audio from the microphone to the IAX channel. // Do the doodle-moodle to send audio from the microphone to the IAX channel.
// sendAudioFromMic(); // sendAudioFromMic();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment