aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-10 15:50:05 -0800
committerChris Robinson <[email protected]>2018-02-10 15:50:05 -0800
commit5b11129eaa3fbf094bbbc85688bf6339b5abb753 (patch)
treefee49054beed0af32b02a3ab2c66d5d66651d172 /OpenAL32
parentee3d53a67373cae7ec13c29a4e3842e732ec06cc (diff)
Use a function pointer for applying the dry mix post-process
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h7
-rw-r--r--OpenAL32/Include/alu.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index baf610b8..8c2615cf 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -462,8 +462,9 @@ typedef struct RealMixParams {
ALsizei NumChannels;
} RealMixParams;
-struct ALCdevice_struct
-{
+typedef void (*POSTPROCESS)(ALCdevice *device, ALsizei SamplesToDo);
+
+struct ALCdevice_struct {
RefCount ref;
ATOMIC(ALenum) Connected;
@@ -507,6 +508,8 @@ struct ALCdevice_struct
vector_FilterSubList FilterList;
almtx_t FilterLock;
+ POSTPROCESS PostProcess;
+
/* HRTF state and info */
struct DirectHrtfState *Hrtf;
al_string HrtfName;
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index 920b7b44..a151c761 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -429,6 +429,8 @@ void aluInitRenderer(ALCdevice *device, ALint hrtf_id, enum HrtfRequestMode hrtf
void aluInitEffectPanning(struct ALeffectslot *slot);
+void aluSelectPostProcess(ALCdevice *device);
+
/**
* CalcDirectionCoeffs
*