aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
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/Include/alMain.h
parentee3d53a67373cae7ec13c29a4e3842e732ec06cc (diff)
Use a function pointer for applying the dry mix post-process
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h7
1 files changed, 5 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;