zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit b6dd1b525709e15a7952fea191e2d3f32aa93eac
parent e08be6ab5b79345f2dd21bd8f577468ae8e4e25c
Author: fundamental <[email protected]>
Date:   Mon,  2 Feb 2015 19:31:20 -0500

Fixup JackMultiEngine

Diffstat:
Msrc/Nio/JackMultiEngine.cpp | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Nio/JackMultiEngine.cpp b/src/Nio/JackMultiEngine.cpp @@ -30,9 +30,11 @@ #include "Nio.h" #include "../Misc/Master.h" #include "../Misc/Part.h" +#include "../Misc/MiddleWare.h" #include "JackMultiEngine.h" +extern MiddleWare *middleware; using std::string; struct jack_multi @@ -146,13 +148,13 @@ int JackMultiEngine::processAudio(jack_nframes_t nframes) memcpy(buffers[1], smp.r, synth->bufferbytes); //Gather other samples from individual parts - Master &master = Master::getInstance(); + Master &master = *middleware->spawnMaster(); for(int i = 0; i < NUM_MIDI_PARTS; ++i) { memcpy(buffers[2*i + 2], master.part[i]->partoutl, synth->bufferbytes); memcpy(buffers[2*i + 3], master.part[i]->partoutr, synth->bufferbytes); } - return true; + return false; } void JackMultiEngine::Stop()