[Scummvm-cvs-logs] scummvm master -> 333e4d3463ace48a42e2720cacb86995e0dc2601
m-kiewitz
m_kiewitz at users.sourceforge.net
Mon Jun 29 00:21:22 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
333e4d3463 AUDIO: Miles Audio MT32: fix instrument installing
Commit: 333e4d3463ace48a42e2720cacb86995e0dc2601
https://github.com/scummvm/scummvm/commit/333e4d3463ace48a42e2720cacb86995e0dc2601
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-06-29T00:21:14+02:00
Commit Message:
AUDIO: Miles Audio MT32: fix instrument installing
Changed paths:
audio/miles_mt32.cpp
diff --git a/audio/miles_mt32.cpp b/audio/miles_mt32.cpp
index af99abc..7940617 100644
--- a/audio/miles_mt32.cpp
+++ b/audio/miles_mt32.cpp
@@ -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
}
More information about the Scummvm-git-logs
mailing list