From f3518feb75c6039d94a60b99aff2126bd197296b Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 7 Mar 2018 12:00:49 +0100 Subject: [PATCH] Removed checks for new(). --- src/dexed.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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);