aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-22 22:14:25 -0800
committerChris Robinson <[email protected]>2018-12-22 22:31:26 -0800
commite218999b4f408b7fd35daa9d021288b68f5b4ab5 (patch)
tree87a5e78d31310136620bf0418cbd9ec9c63636cb /OpenAL32/Include
parentebfe818d2eb3a5c4e27040f139ae3fb349f13865 (diff)
Dynamically sort the effect slots when mixing
This is to be able to support effects that output to other effects. When an effect outputs to another effect, the former needs to process first, so the former mixes to the latter's buffer before the latter is processed. This sorting needs to happen in the mixer because the effect slot's "Target" property changes asynchronously.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alAuxEffectSlot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h
index 539cee53..04f00758 100644
--- a/OpenAL32/Include/alAuxEffectSlot.h
+++ b/OpenAL32/Include/alAuxEffectSlot.h
@@ -78,6 +78,7 @@ struct ALeffectslot {
struct {
ALfloat Gain{1.0f};
ALboolean AuxSendAuto{AL_TRUE};
+ ALeffectslot *Target{nullptr};
ALenum EffectType{AL_EFFECT_NULL};
ALeffectProps EffectProps{};