1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2026-06-09 09:04:45 -04:00

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
+1 -9
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();
}