From d8848ff6a064f92242c891bf702b0297711213ca Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Wed, 28 May 2008 00:42:24 +0000 Subject: [PATCH] Fix sf2player gain git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1028 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 6 ++++++ plugins/sf2_player/sf2_player.cpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6cf9c3398..225212afb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-27 Paul Giblock + + * plugins/sf2_player/sf2_player.cpp: + Restore gain setting when loading a project and keep gain setting when + changing sample rate + 2008-05-26 Paul Giblock * include/controller_view.h: diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index ddc4a51cd..2c836a7a1 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -220,6 +220,8 @@ void sf2Instrument::loadSettings( const QDomElement & _this ) m_chorusLevel.loadSettings( _this, "chorusLevel" ); m_chorusSpeed.loadSettings( _this, "chorusSpeed" ); m_chorusDepth.loadSettings( _this, "chorusDepth" ); + + updateGain(); } @@ -405,6 +407,7 @@ void sf2Instrument::updateSampleRate( void ) // synth program change (set bank and patch) updatePatch(); + updateGain(); } else {