diff options
author | Chris Robinson <[email protected]> | 2020-11-28 02:06:56 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-11-28 02:06:56 -0800 |
commit | eb9b9fb4e59cadc308b8ebcdf3da59a961382224 (patch) | |
tree | 1ec8f87d368c69137988544f687b332d6d8ff256 /alc/mastering.h | |
parent | dbfdd35545268bc6f52b3b50365a36777fda1730 (diff) |
Avoid AL types in mastering.cpp/h
Diffstat (limited to 'alc/mastering.h')
-rw-r--r-- | alc/mastering.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/alc/mastering.h b/alc/mastering.h index 92c25fee..9503a37e 100644 --- a/alc/mastering.h +++ b/alc/mastering.h @@ -3,14 +3,13 @@ #include <memory> -#include "AL/al.h" - -/* For FloatBufferLine/BUFFERSIZE. */ -#include "alcmain.h" #include "almalloc.h" +#include "core/bufferline.h" struct SlidingHold; +using uint = unsigned int; + /* General topology and basic automation was based on the following paper: * @@ -33,7 +32,7 @@ struct Compressor { bool Declip : 1; } mAuto{}; - ALuint mLookAhead{0}; + uint mLookAhead{0}; float mPreGain{0.0f}; float mPostGain{0.0f}; @@ -63,8 +62,8 @@ struct Compressor { ~Compressor(); - void process(const ALuint SamplesToDo, FloatBufferLine *OutBuffer); - ALsizei getLookAhead() const noexcept { return static_cast<ALsizei>(mLookAhead); } + void process(const uint SamplesToDo, FloatBufferLine *OutBuffer); + int getLookAhead() const noexcept { return static_cast<int>(mLookAhead); } DEF_PLACE_NEWDEL() |