From 9b8d396d82062e03bad9d794a4114c14068fa3e5 Mon Sep 17 00:00:00 2001 From: Vesa Date: Sat, 1 Mar 2014 22:59:48 +0200 Subject: [PATCH] Make sfxr use noteplayhandle, to enable velocity and env/lfo tab --- plugins/sfxr/sfxr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/sfxr/sfxr.cpp b/plugins/sfxr/sfxr.cpp index a64f19b5a..27cd287da 100644 --- a/plugins/sfxr/sfxr.cpp +++ b/plugins/sfxr/sfxr.cpp @@ -481,7 +481,10 @@ void sfxrInstrument::playNote( NotePlayHandle * _n, sampleFrame * _working_buffe delete[] pitchedBuffer; - instrumentTrack()->processAudioBuffer( _working_buffer, frameNum, NULL ); + applyRelease( _working_buffer, _n ); + + instrumentTrack()->processAudioBuffer( _working_buffer, frameNum, _n ); + }