mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
Add comments
This commit is contained in:
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…
Reference in a new issue