Reduce processing delay

Process one packet all at once
This commit is contained in:
Geoffrey Merck 2020-02-22 06:10:55 +01:00
parent 5356f37fd8
commit 02a583f0b3
14 changed files with 298 additions and 116 deletions

View file

@ -152,15 +152,7 @@ void CUsb3xxxInterface::Task(void)
{
Queue = Channel->GetVoiceQueue();
CVoicePacket *clone = new CVoicePacket(VoicePacket);
#if USE_BANDPASSFILTER
//Aply band pass before AGC to avoidd amplifying signals we do not want
Channel->ApplyFilter(*clone);
#endif
#if USE_AGC == 1
Channel->ApplyAGC(*clone);
#else
clone->ApplyGain(Channel->GetSpeechGain());
#endif
Channel->ProcessSignal(*clone);
Queue->push(clone);
Channel->ReleaseVoiceQueue();
}