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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user