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

Not recording "pulse noise" anymore when recording while leaving a message

parent 0a606ed4
No related branches found
No related tags found
No related merge requests found
...@@ -222,8 +222,15 @@ IAXVoIPLink::getEvent() ...@@ -222,8 +222,15 @@ IAXVoIPLink::getEvent()
} }
if(call){ if(call){
call->recAudio.recData(spkrDataConverted,micData,nbSampleForRec_,nbSampleForRec_); _debug("Are we recording");
call->recAudio.recData(spkrDataConverted,micData,nbSampleForRec_,nbSampleForRec_);
} }
// reinitialize speaker buffer for recording (when recording a voice mail)
for (int i = 0; i < nbSampleForRec_; i++)
spkrDataConverted[i] = 0;
// thread wait 3 millisecond // thread wait 3 millisecond
_evThread->sleep(3); _evThread->sleep(3);
free(event); free(event);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment