aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-11-27 18:52:56 -0800
committerChris Robinson <[email protected]>2013-11-27 18:52:56 -0800
commit182b08d8bcdcadf408f03c108ed03296a34f717f (patch)
tree487236aeb4601f39d9cc33efc0f9ee1280a94bcd /Alc/ALu.c
parent5554b8cfc93db026812dafa695d5f7a3450a40a7 (diff)
Create and use a MidiSynth on playback devices
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index e7a3c035..4ac7250b 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -31,6 +31,7 @@
#include "alBuffer.h"
#include "alListener.h"
#include "alAuxEffectSlot.h"
+#include "alMidi.h"
#include "alu.h"
#include "bs2b.h"
@@ -1028,6 +1029,8 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size)
memset(device->DryBuffer[c], 0, SamplesToDo*sizeof(ALfloat));
ALCdevice_Lock(device);
+ V(device->Synth,process)(SamplesToDo, device->DryBuffer);
+
ctx = device->ContextList;
while(ctx)
{