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
......@@ -222,8 +222,15 @@ IAXVoIPLink::getEvent()
}
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
_evThread->sleep(3);
free(event);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment