diff --git a/include/DummyInstrument.h b/include/DummyInstrument.h index c3ba12f83..c369924b7 100644 --- a/include/DummyInstrument.h +++ b/include/DummyInstrument.h @@ -28,6 +28,9 @@ #include "Instrument.h" #include "InstrumentView.h" +#include "Engine.h" + +#include class DummyInstrument : public Instrument @@ -42,8 +45,10 @@ public: { } - virtual void playNote( NotePlayHandle *, sampleFrame * ) + virtual void playNote( NotePlayHandle *, sampleFrame * buffer ) { + memset( buffer, 0, sizeof( sampleFrame ) * + Engine::mixer()->framesPerPeriod() ); } virtual void saveSettings( QDomDocument &, QDomElement & )