ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mididriver.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef AGOS_DRIVERS_ACCOLADE_MIDIDRIVER_H
23 #define AGOS_DRIVERS_ACCOLADE_MIDIDRIVER_H
24 
25 #include "agos/agos.h"
26 
27 #include "audio/fmopl.h"
28 #include "audio/mididrv.h"
29 #include "audio/mididrv_ms.h"
30 
31 #include "common/error.h"
32 
33 namespace AGOS {
34 
35 #define AGOS_MIDI_CHANNEL_COUNT 16
36 #define AGOS_MIDI_INSTRUMENT_COUNT 128
37 
38 #define AGOS_MIDI_KEYNOTE_COUNT 64
39 
40 extern void MidiDriver_Accolade_readDriver(Common::String filename, MusicType requestedDriverType, byte *&driverData, uint16 &driverDataSize, bool &isMusicDrvFile);
41 
42 extern MidiDriver_Multisource *MidiDriver_Accolade_AdLib_create(Common::String driverFilename, OPL::Config::OplType oplType, int callbackFrequency = OPL::OPL::kDefaultCallbackFrequency);
43 extern MidiDriver_Multisource *MidiDriver_Accolade_MT32_create(Common::String driverFilename);
44 extern MidiDriver_Multisource *MidiDriver_Accolade_Casio_create(Common::String driverFilename);
45 extern MidiDriver *MidiDriverPC98_create(MidiDriver::DeviceHandle dev);
46 
47 } // End of namespace AGOS
48 
49 #endif // AGOS_DRIVERS_ACCOLADE_MIDIDRIVER_H
Definition: str.h:59
uint32 DeviceHandle
Definition: mididrv.h:318
Definition: mididrv_ms.h:86
MusicType
Definition: mididrv.h:44
Definition: mididrv.h:309
Definition: agos.h:70
OplType
Definition: fmopl.h:58