diff options
author | Chris Robinson <[email protected]> | 2015-02-09 08:47:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-02-09 08:47:48 -0800 |
commit | 8933e21ef21c2084570eb9cb998a47053b686ed1 (patch) | |
tree | 5765bae45d1adb3b267f3a942b46fa80ad866c7c /Alc/midi/dummy.c | |
parent | 1393af4f9f2bb081b48006b29fed6ec56dc2dbab (diff) |
Properly handle a mono output buffer with the MIDI synths
Diffstat (limited to 'Alc/midi/dummy.c')
-rw-r--r-- | Alc/midi/dummy.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |