AUDIO: Change several fake MidiDrivers to MidiDriver_BASE subclasses
Many engines follow the advice in audio/midiparser.h and create a "pseudo-MidiDriver" subclass. But MidiParser really only needs a tiny subset of the MidiDriver capabilities, namely those found in MidiDriver_BASE. So we try to subclass from that whenever possible; this allows us to remove many stub methods, and enables further future simplifications.
This commit is contained in:
parent
c70c8864f1
commit
29847ea42d
35 changed files with 45 additions and 255 deletions
|
@ -96,7 +96,7 @@ TestExitStatus MidiTests::playMidiMusic() {
|
|||
int errCode = driver->open();
|
||||
|
||||
if (errCode) {
|
||||
Common::String errMsg = driver->getErrorName(errCode);
|
||||
Common::String errMsg = MidiDriver::getErrorName(errCode);
|
||||
Testsuite::writeOnScreen(errMsg, Common::Point(0, 100));
|
||||
Testsuite::logPrintf("Error! %s", errMsg.c_str());
|
||||
return kTestFailed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue