From: terminator356 <ter...@us...> - 2009-11-19 04:20:43
|
Update of /cvsroot/lmuse/muse/synti/fluid In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17248/synti/fluid Modified Files: Tag: REL07 fluid.cpp fluid.h Log Message: See ChangeLog Index: fluid.cpp =================================================================== RCS file: /cvsroot/lmuse/muse/synti/fluid/fluid.cpp,v retrieving revision 1.18.2.6 retrieving revision 1.18.2.7 diff -C2 -d -r1.18.2.6 -r1.18.2.7 *** fluid.cpp 16 Oct 2009 22:15:51 -0000 1.18.2.6 --- fluid.cpp 19 Nov 2009 04:20:33 -0000 1.18.2.7 *************** *** 295,299 **** --- 295,319 ---- //--------------------------------------------------------- + // processMessages + // Called from host always, even if output path is unconnected. + //--------------------------------------------------------- + + void ISynth::processMessages() + { + //Process messages from the gui + if (!_busy) + { + // + // get and process all pending events from the + // synthesizer GUI + // + while (gui->fifoSize()) + processEvent(gui->readEvent()); + } + } + + //--------------------------------------------------------- // process + // Called from host, ONLY if output path is connected. //--------------------------------------------------------- *************** *** 301,304 **** --- 321,325 ---- { if (!_busy) { + /* // // get and process all pending events from the *************** *** 307,310 **** --- 328,332 ---- while (gui->fifoSize()) processEvent(gui->readEvent()); + */ fluid_synth_write_float(_fluidsynth, n, ports[0], offset, 1, ports[1], offset, 1); Index: fluid.h =================================================================== RCS file: /cvsroot/lmuse/muse/synti/fluid/fluid.h,v retrieving revision 1.7.2.3 retrieving revision 1.7.2.4 diff -C2 -d -r1.7.2.3 -r1.7.2.4 *** fluid.h 2 Feb 2009 21:38:02 -0000 1.7.2.3 --- fluid.h 19 Nov 2009 04:20:33 -0000 1.7.2.4 *************** *** 54,57 **** --- 54,58 ---- void resetAllController(int); + virtual void processMessages(); virtual void process(float**, int, int); virtual bool playNote(int channel, int pitch, int velo); |