mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
AUDIO/MIDI: Change Miles AdLib creation type to multisource
This changes the return type of the Miles AdLib MIDI driver factory function to the recently introduced superclass MidiDriver_Multisource, which allows for easier use of multisource functionality for consumers of the factory function.
This commit is contained in:
parent
1f63fd3b90
commit
55fadd03a1
@ -295,7 +295,7 @@ private:
|
||||
MilesMT32SysExQueueEntry _milesSysExQueues[MILES_CONTROLLER_SYSEX_QUEUE_COUNT];
|
||||
};
|
||||
|
||||
extern MidiDriver *MidiDriver_Miles_AdLib_create(const Common::String &filenameAdLib, const Common::String &filenameOPL3, Common::SeekableReadStream *streamAdLib = nullptr, Common::SeekableReadStream *streamOPL3 = nullptr);
|
||||
extern MidiDriver_Multisource *MidiDriver_Miles_AdLib_create(const Common::String &filenameAdLib, const Common::String &filenameOPL3, Common::SeekableReadStream *streamAdLib = nullptr, Common::SeekableReadStream *streamOPL3 = nullptr);
|
||||
|
||||
extern MidiDriver_Miles_Midi *MidiDriver_Miles_MT32_create(const Common::String &instrumentDataFilename);
|
||||
|
||||
|
@ -1105,7 +1105,7 @@ void MidiDriver_Miles_AdLib::setRegister(int reg, int value) {
|
||||
}
|
||||
}
|
||||
|
||||
MidiDriver *MidiDriver_Miles_AdLib_create(const Common::String &filenameAdLib, const Common::String &filenameOPL3, Common::SeekableReadStream *streamAdLib, Common::SeekableReadStream *streamOPL3) {
|
||||
MidiDriver_Multisource *MidiDriver_Miles_AdLib_create(const Common::String &filenameAdLib, const Common::String &filenameOPL3, Common::SeekableReadStream *streamAdLib, Common::SeekableReadStream *streamOPL3) {
|
||||
// Load adlib instrument data from file SAMPLE.AD (OPL3: SAMPLE.OPL)
|
||||
Common::String timbreFilename;
|
||||
Common::SeekableReadStream *timbreStream = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user