From 8933e21ef21c2084570eb9cb998a47053b686ed1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 9 Feb 2015 08:47:48 -0800 Subject: Properly handle a mono output buffer with the MIDI synths --- Alc/midi/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/midi/base.h') diff --git a/Alc/midi/base.h b/Alc/midi/base.h index 309e1a55..823e3802 100644 --- a/Alc/midi/base.h +++ b/Alc/midi/base.h @@ -90,7 +90,7 @@ struct MidiSynthVtable { void (*const reset)(MidiSynth *self); void (*const update)(MidiSynth *self, ALCdevice *device); - void (*const process)(MidiSynth *self, ALuint samples, ALfloat (*restrict DryBuffer)[BUFFERSIZE]); + void (*const process)(MidiSynth *self, ALuint samples, ALfloat (*restrict DryBuffer)[BUFFERSIZE], ALuint NumChannels); void (*const Delete)(void *ptr); }; @@ -102,7 +102,7 @@ DECLARE_THUNK1(T, MidiSynth, void, setGain, ALfloat) \ DECLARE_THUNK(T, MidiSynth, void, stop) \ DECLARE_THUNK(T, MidiSynth, void, reset) \ DECLARE_THUNK1(T, MidiSynth, void, update, ALCdevice*) \ -DECLARE_THUNK2(T, MidiSynth, void, process, ALuint, ALfloatBUFFERSIZE*restrict) \ +DECLARE_THUNK3(T, MidiSynth, void, process, ALuint, ALfloatBUFFERSIZE*restrict, ALuint) \ static void T##_MidiSynth_Delete(void *ptr) \ { T##_Delete(STATIC_UPCAST(T, MidiSynth, (MidiSynth*)ptr)); } \ \ -- cgit v1.2.3