mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
AUDIO: Miles Audio MT32: fix instrument installing
This commit is contained in:
parent
50b822c60e
commit
333e4d3463
@ -538,6 +538,7 @@ const MilesMT32InstrumentEntry *MidiDriver_Miles_MT32::searchCustomInstrument(by
|
||||
for (uint16 instrumentNr = 0; instrumentNr < _instrumentTableCount; instrumentNr++) {
|
||||
if ((instrumentPtr->bankId == patchBank) && (instrumentPtr->patchId == patchId))
|
||||
return instrumentPtr;
|
||||
instrumentPtr++;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
@ -589,7 +590,7 @@ int16 MidiDriver_Miles_MT32::installCustomTimbre(byte patchBank, byte patchId) {
|
||||
const MilesMT32InstrumentEntry *instrumentPtr = NULL;
|
||||
|
||||
// Check, if requested instrument is actually available
|
||||
instrumentPtr = this->searchCustomInstrument(patchBank, patchId);
|
||||
instrumentPtr = searchCustomInstrument(patchBank, patchId);
|
||||
if (!instrumentPtr) {
|
||||
return -1; // not found -> bail out
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user