- made the sound font loading a bit more error resistant.
- implemented a fallback both for sound font lookup and for MIDI device selection so that if some non-working combination is set up, the player will fall back to something that works.
This commit is contained in:
parent
d45a50b0db
commit
eb124f6160
10 changed files with 77 additions and 35 deletions
|
|
@ -161,7 +161,7 @@ static Instrument *load_instrument(Renderer *song, const char *name, int percuss
|
|||
int i, j;
|
||||
bool noluck = false;
|
||||
|
||||
if (!name) return 0;
|
||||
if (!name || gus_sfreader == nullptr) return nullptr;
|
||||
|
||||
/* Open patch file */
|
||||
fp = gus_sfreader->LookupFile(name).first;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue