aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mastering.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-11-28 02:06:56 -0800
committerChris Robinson <[email protected]>2020-11-28 02:06:56 -0800
commiteb9b9fb4e59cadc308b8ebcdf3da59a961382224 (patch)
tree1ec8f87d368c69137988544f687b332d6d8ff256 /alc/mastering.h
parentdbfdd35545268bc6f52b3b50365a36777fda1730 (diff)
Avoid AL types in mastering.cpp/h
Diffstat (limited to 'alc/mastering.h')
-rw-r--r--alc/mastering.h13
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()