From eb9b9fb4e59cadc308b8ebcdf3da59a961382224 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 Nov 2020 02:06:56 -0800 Subject: Avoid AL types in mastering.cpp/h --- alc/mastering.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'alc/mastering.h') 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 -#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(mLookAhead); } + void process(const uint SamplesToDo, FloatBufferLine *OutBuffer); + int getLookAhead() const noexcept { return static_cast(mLookAhead); } DEF_PLACE_NEWDEL() -- cgit v1.2.3