Fix sf2player gain

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1028 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-28 00:42:24 +00:00
parent fe80dc9e2a
commit d8848ff6a0
2 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2008-05-27 Paul Giblock <drfaygo/at/gmail/dot/com>
* 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 <drfaygo/at/gmail/dot/com>
* include/controller_view.h:

View File

@@ -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
{