From d7f922da75a80181d1c47940b47c5ab7b1c6c727 Mon Sep 17 00:00:00 2001 From: Vesa Date: Fri, 11 Jul 2014 21:35:26 +0300 Subject: [PATCH] SF2: Fix crash with stacking/arp --- plugins/sf2_player/sf2_player.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index eaf3d0a86..09c7eeed1 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -529,6 +529,11 @@ void sf2Instrument::updateSampleRate() void sf2Instrument::playNote( NotePlayHandle * _n, sampleFrame * ) { + if( _n->isMasterNote() || ( _n->hasParent() && _n->isReleased() ) ) + { + return; + } + const f_cnt_t tfp = _n->totalFramesPlayed(); if( tfp == 0 )