aboutsummaryrefslogtreecommitdiff
path: root/sound/mididrv.h
diff options
context:
space:
mode:
authorMax Horn2002-04-26 13:18:49 +0000
committerMax Horn2002-04-26 13:18:49 +0000
commitd83fcb54d0b8120dc584113461416a2878c1f9a3 (patch)
tree0417f9f8fe2646c9699dda5fbae58f8f412e97c6 /sound/mididrv.h
parentd5d06612ed9d3c7e3966f673a791ad30984cf1c6 (diff)
downloadscummvm-rg350-d83fcb54d0b8120dc584113461416a2878c1f9a3.tar.gz
scummvm-rg350-d83fcb54d0b8120dc584113461416a2878c1f9a3.tar.bz2
scummvm-rg350-d83fcb54d0b8120dc584113461416a2878c1f9a3.zip
added new style midi drivers using QuickTime (MacOS 9 & X) and CoreAudio (MacOS X)
svn-id: r4086
Diffstat (limited to 'sound/mididrv.h')
-rw-r--r--sound/mididrv.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/sound/mididrv.h b/sound/mididrv.h
index 693226b612..61bd13d5ef 100644
--- a/sound/mididrv.h
+++ b/sound/mididrv.h
@@ -66,7 +66,7 @@ public:
/* destroy the midi object */
- virtual void destroy() = 0;
+// virtual void destroy() = 0;
/* open the midi driver.
* returns 0 if successful.
@@ -91,7 +91,7 @@ public:
/* Get or set a property */
- virtual uint32 property(int prop, uint32 param) = 0;
+ virtual uint32 property(int prop, uint32 param) ;
/* retrieve a string representation of an error code */
static const char *get_error_name(int error_code);
@@ -108,14 +108,16 @@ enum {
MD_SEQ = 4,
MD_QTMUSIC = 5,
MD_AMIDI = 6,
+ MD_COREAUDIO = 7,
};
/* Factory functions => no need to include the specific classes
* in this header => faster compile */
-MidiDriver *MidiDriver_NULL_create();
-MidiDriver *MidiDriver_WIN_create();
-MidiDriver *MidiDriver_TIMIDITY_create();
-MidiDriver *MidiDriver_SEQ_create();
-MidiDriver *MidiDriver_QT_create();
-MidiDriver *MidiDriver_AMIDI_create();
+extern MidiDriver *MidiDriver_NULL_create();
+extern MidiDriver *MidiDriver_WIN_create();
+extern MidiDriver *MidiDriver_TIMIDITY_create();
+extern MidiDriver *MidiDriver_SEQ_create();
+extern MidiDriver *MidiDriver_QT_create();
+extern MidiDriver *MidiDriver_CORE_create();
+extern MidiDriver *MidiDriver_AMIDI_create();