diff options
author | Chris Robinson <[email protected]> | 2018-12-20 11:46:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-20 11:46:57 -0800 |
commit | 7dc553350bd70b77608b3da175d9146494fb861d (patch) | |
tree | ac127cf3f0036a5a58a4a98285dea04cf587b054 /Alc/mastering.h | |
parent | 08b79b9bbfa96ee6dcbc4d58bf082c9e6df911df (diff) |
Clean up most of the compressor loops
Diffstat (limited to 'Alc/mastering.h')
-rw-r--r-- | Alc/mastering.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/mastering.h b/Alc/mastering.h index 14111130..55b7c258 100644 --- a/Alc/mastering.h +++ b/Alc/mastering.h @@ -25,11 +25,11 @@ struct Compressor { ALuint SampleRate; struct { - ALuint Knee : 1; - ALuint Attack : 1; - ALuint Release : 1; - ALuint PostGain : 1; - ALuint Declip : 1; + bool Knee : 1; + bool Attack : 1; + bool Release : 1; + bool PostGain : 1; + bool Declip : 1; } Auto; ALsizei LookAhead; @@ -97,9 +97,9 @@ Compressor* CompressorInit(const ALsizei NumChans, const ALuint SampleRate, const ALfloat Ratio, const ALfloat KneeDb, const ALfloat AttackTime, const ALfloat ReleaseTime); -void ApplyCompression(struct Compressor *Comp, const ALsizei SamplesToDo, - ALfloat (*RESTRICT OutBuffer)[BUFFERSIZE]); +void ApplyCompression(Compressor *Comp, const ALsizei SamplesToDo, + ALfloat (*OutBuffer)[BUFFERSIZE]); -ALsizei GetCompressorLookAhead(const struct Compressor *Comp); +ALsizei GetCompressorLookAhead(const Compressor *Comp); #endif /* MASTERING_H */ |