Add comments

pull/1/head
Geoffrey Merck 6 years ago
parent fe700f253b
commit f01c44ed53

@ -48,11 +48,17 @@ CAGC::CAGC(float initialLeveldB)
m_Alpha = m_Bandwidth; m_Alpha = m_Bandwidth;
} }
////////////////////////////////////////////////////////////////////////////////////////
// get
float CAGC::GetGain() float CAGC::GetGain()
{ {
return 20.0f*log10(m_Gain); return 20.0f*log10(m_Gain);
} }
////////////////////////////////////////////////////////////////////////////////////////
// process
void CAGC::Apply(uint8 * voice, int size) void CAGC::Apply(uint8 * voice, int size)
{ {
for (int i = 0; i < size; i+=2) for (int i = 0; i < size; i+=2)

Loading…
Cancel
Save

Powered by TurnKey Linux.