From 3f738ae1a927b036ce73aadabc358ac31c39cd53 Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Sun, 29 Jun 2008 04:30:10 +0000 Subject: [PATCH] Correctly initialize sf2 gain on startup git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1196 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 5 +++++ plugins/sf2_player/sf2_player.cpp | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index d8ca71007..939feadd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-28 Paul Giblock + + * plugins/sf2_player/sf2_player.cpp: + Initialize gain at 1.0 + 2008-06-28 Tobias Doerffel * plugins/Makefile.am: diff --git a/plugins/sf2_player/sf2_player.cpp b/plugins/sf2_player/sf2_player.cpp index 2c5140d6f..4f3134bfd 100644 --- a/plugins/sf2_player/sf2_player.cpp +++ b/plugins/sf2_player/sf2_player.cpp @@ -118,6 +118,7 @@ sf2Instrument::sf2Instrument( instrumentTrack * _instrument_track ) : updateReverb(); updateChorusOn(); updateChorus(); + updateGain(); connect( &m_bankNum, SIGNAL( dataChanged() ), @@ -164,6 +165,7 @@ sf2Instrument::sf2Instrument( instrumentTrack * _instrument_track ) : connect( &m_chorusDepth, SIGNAL( dataChanged() ), this, SLOT( updateChorus() ) ); + }