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/dummy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/midi/dummy.c') diff --git a/Alc/midi/dummy.c b/Alc/midi/dummy.c index d50b8fef..a04c1c9b 100644 --- a/Alc/midi/dummy.c +++ b/Alc/midi/dummy.c @@ -25,7 +25,7 @@ static DECLARE_FORWARD1(DSynth, MidiSynth, void, setGain, ALfloat) static DECLARE_FORWARD(DSynth, MidiSynth, void, stop) static DECLARE_FORWARD(DSynth, MidiSynth, void, reset) static DECLARE_FORWARD1(DSynth, MidiSynth, void, update, ALCdevice*) -static void DSynth_process(DSynth *self, ALuint SamplesToDo, ALfloat (*restrict DryBuffer)[BUFFERSIZE]); +static void DSynth_process(DSynth *self, ALuint SamplesToDo, ALfloat (*restrict DryBuffer)[BUFFERSIZE], ALuint NumChannels); DECLARE_DEFAULT_ALLOCATORS(DSynth) DEFINE_MIDISYNTH_VTABLE(DSynth); @@ -45,7 +45,7 @@ static void DSynth_processQueue(DSynth *self, ALuint64 time) queue->pos++; } -static void DSynth_process(DSynth *self, ALuint SamplesToDo, ALfloatBUFFERSIZE*restrict UNUSED(DryBuffer)) +static void DSynth_process(DSynth *self, ALuint SamplesToDo, ALfloatBUFFERSIZE*restrict UNUSED(DryBuffer), ALuint UNUSED(NumChannels)) { MidiSynth *synth = STATIC_CAST(MidiSynth, self); ALuint64 curtime; -- cgit v1.2.3