diff --git a/src/dexed.cpp b/src/dexed.cpp index 2ca5e5d..0c21176 100644 --- a/src/dexed.cpp +++ b/src/dexed.cpp @@ -49,6 +49,11 @@ Dexed::Dexed(double rate) : lvtk::Synth(p_n_ports, p_midi_in) Env::init_sr(rate); fx.init(rate); + engineMkI=new EngineMkI; + engineOpl=new EngineOpl; + engineMsfa=new FmCore; + + /* if(!(engineMkI=new (std::nothrow) EngineMkI)) TRACE("Cannot not create engine EngineMkI"); if(!(engineOpl=new (std::nothrow) EngineOpl)) @@ -62,10 +67,12 @@ Dexed::Dexed(double rate) : lvtk::Synth(p_n_ports, p_midi_in) delete(engineOpl); TRACE("Cannot create engine FmCore"); } + */ for(i=0; i(p_n_ports, p_midi_in) bufsize_=256; - if(!(outbuf_=new (std::nothrow) float[bufsize_])) - TRACE("Cannot create outbuf_ buffer"); + outbuf_=new float[bufsize_]; + //if(!(outbuf_=new (std::nothrow) float[bufsize_])) + // TRACE("Cannot create outbuf_ buffer"); lfo.reset(data+137);