Sf2Player: load default soundfont upon instantiation

When creating a new Sf2Player plugin instance, load the default
soundfont. Might decrease performance a little bit when loading projects
which make use of many other soundfonts but for the sake of improved
usability we should accept this.

Partially closes #3149779.
(cherry picked from commit 510f87bfcc)
This commit is contained in:
Tobias Doerffel
2011-01-23 23:19:31 +01:00
parent 5949f49e11
commit 14f043598c

View File

@@ -133,7 +133,7 @@ sf2Instrument::sf2Instrument( InstrumentTrack * _instrument_track ) :
InstrumentPlayHandle * iph = new InstrumentPlayHandle( this );
engine::mixer()->addPlayHandle( iph );
//loadFile( configManager::inst()->defaultSoundfont() );
loadFile( configManager::inst()->defaultSoundfont() );
updateSampleRate();
updateReverbOn();