mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-04-06 15:04:12 +00:00
Reduce processing delay
Process one packet all at once
This commit is contained in:
parent
5356f37fd8
commit
02a583f0b3
14 changed files with 298 additions and 116 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue