MCPcopy Create free account
hub / github.com/LMMS/lmms / loadFile

Method loadFile

plugins/sf2_player/sf2_player.cpp:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257
258void sf2Instrument::loadFile( const QString & _file )
259{
260 if( !_file.isEmpty() && QFileInfo( _file ).exists() )
261 {
262 openFile( _file, false );
263 updatePatch();
264
265 // for some reason we've to call that, otherwise preview of a
266 // soundfont for the first time fails
267 updateSampleRate();
268 }
269}
270
271
272

Callers

nothing calls this directly

Calls 3

updateSampleRateFunction · 0.85
existsMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected