Fixes for new() and exit(). Thanks to falkTX!

pull/2/head
Holger Wirtz 6 years ago
parent 506f090c80
commit 2bfd52fe6a
  1. 4
      src/dexed.cpp

@ -50,9 +50,7 @@ Dexed::Dexed(double rate) : lvtk::Synth<DexedVoice, Dexed>(p_n_ports, p_midi_in)
fx.init(rate);
if(!(engineMkI=new (std::nothrow) EngineMkI))
{
TRACE("Cannot not create engine EngineMkI");
}
if(!(engineOpl=new (std::nothrow) EngineOpl))
{
delete(engineMkI);
@ -67,9 +65,7 @@ Dexed::Dexed(double rate) : lvtk::Synth<DexedVoice, Dexed>(p_n_ports, p_midi_in)
for(i=0; i<MAX_ACTIVE_NOTES; i++) {
if(!(voices[i].dx7_note = new (std::nothrow) Dx7Note))
{
TRACE("Cannot create DX7Note [%d]",i);
}
voices[i].keydown = false;
voices[i].sustained = false;
voices[i].live = false;

Loading…
Cancel
Save