| 256 | |
| 257 | |
| 258 | void 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 |
nothing calls this directly
no test coverage detected