mirror of
https://github.com/LX3JL/xlxd.git
synced 2026-04-17 12:23:42 +00:00
Add AGC
This commit is contained in:
parent
a78c30abfb
commit
64f5fddf17
5 changed files with 147 additions and 2 deletions
|
|
@ -152,7 +152,10 @@ void CUsb3xxxInterface::Task(void)
|
|||
{
|
||||
Queue = Channel->GetVoiceQueue();
|
||||
CVoicePacket *clone = new CVoicePacket(VoicePacket);
|
||||
clone->ApplyGain(Channel->GetSpeechGain());
|
||||
CAGC agc = Channel->GetAGC();
|
||||
agc.Apply(clone->GetVoice(), clone->GetVoiceSize());
|
||||
std::cout << "Gain : " << agc.GetGain();
|
||||
//clone->ApplyGain(Channel->GetSpeechGain());
|
||||
Queue->push(clone);
|
||||
Channel->ReleaseVoiceQueue();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue