diff options
author | Ludvig Strigeus | 2002-04-14 18:13:08 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2002-04-14 18:13:08 +0000 |
commit | ac62a7cb2e17a86350681366d768a99db3b9845d (patch) | |
tree | 48a6f9eca1242f7ebf03f05835372811a4048f7a /sound/mididrv.cpp | |
parent | a5e3dbb85dad96d8ffb6205e07d12ff8396ba5c7 (diff) | |
download | scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.tar.gz scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.tar.bz2 scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.zip |
wrote new mixer class,
cleaned up sound header files,
integrated mixer into scummvm & simon
svn-id: r3937
Diffstat (limited to 'sound/mididrv.cpp')
-rw-r--r-- | sound/mididrv.cpp | 56 |
1 files changed, 49 insertions, 7 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp index 7a881e7cb1..b8d365be29 100644 --- a/sound/mididrv.cpp +++ b/sound/mididrv.cpp @@ -30,11 +30,9 @@ #include <devices/timer.h> #endif - #include "stdafx.h" #include "scumm.h" -#include "gmidi.h" - +#include "mididrv.h" #ifdef WIN32 @@ -326,9 +324,6 @@ const char *MidiDriver::get_error_name(int error_code) { #if 0 - - - void MidiDriver::midiInit() { if (MidiInitialized != true) { @@ -686,4 +681,51 @@ void MidiDriver::midiInitNull() warning ("Music not enabled - MIDI support selected with no MIDI driver available. Try Adlib"); } -#endif
\ No newline at end of file + + + +/* old header stuff.. */ +/* General Midi header file */ +#define SEQ_MIDIPUTC 5 +#define SPECIAL_CHANNEL 9 +#define DEVICE_NUM 0 + + + +#ifdef __APPLE__CW + #include <QuickTimeComponents.h> + #include "QuickTimeMusic.h" + + NoteAllocator qtNoteAllocator; + NoteChannel qtNoteChannel[16]; + NoteRequest simpleNoteRequest; +#endif + +#ifdef WIN32 + #include <winsock.h> +#elif defined(UNIX) + #include <sys/time.h> + #include <unistd.h> + #include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <netdb.h> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +#endif + +#ifdef __MORPHOS__ + #include <exec/types.h> + #include <devices/amidi.h> + + #define NO_PPCINLINE_STDARG + #define NO_PPCINLINE_VARARGS + #include <clib/alib_protos.h> + #include <proto/exec.h> + #undef CMD_INVALID + + extern struct IOMidiRequest *ScummMidiRequest; +#endif + +#endif /* 0 */
\ No newline at end of file |