This commit is contained in:
Geoffrey Merck 2020-01-28 21:06:43 +01:00
parent a78c30abfb
commit 64f5fddf17
5 changed files with 147 additions and 2 deletions

View file

@ -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();
}