aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/midi/MIDIDEFS.PAS
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-05 12:02:06 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-09-05 12:02:06 +0000
commit30343a531999b5e50673ee1731f1c54cbc008dfd (patch)
treeac7bd5051ad29aa13fe5a854d553b49ececcd4a8 /Game/Code/lib/midi/MIDIDEFS.PAS
parentfee5e834a23f11ea42365b9c5f7336b9c5c58bc0 (diff)
downloadusdx-30343a531999b5e50673ee1731f1c54cbc008dfd.tar.gz
usdx-30343a531999b5e50673ee1731f1c54cbc008dfd.tar.xz
usdx-30343a531999b5e50673ee1731f1c54cbc008dfd.zip
added 3rd party dependencies ( except Jedi-SDL )
modified DPR to statically include all files needed (using relative paths) this means 3rd party components should not need installation in the IDE, or adding to search paths. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@368 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/lib/midi/MIDIDEFS.PAS')
-rw-r--r--Game/Code/lib/midi/MIDIDEFS.PAS47
1 files changed, 47 insertions, 0 deletions
diff --git a/Game/Code/lib/midi/MIDIDEFS.PAS b/Game/Code/lib/midi/MIDIDEFS.PAS
new file mode 100644
index 00000000..4024c547
--- /dev/null
+++ b/Game/Code/lib/midi/MIDIDEFS.PAS
@@ -0,0 +1,47 @@
+{ $Header: /MidiComp/MIDIDEFS.PAS 2 10/06/97 7:33 Davec $ }
+
+{ Written by David Churcher <dchurcher@cix.compulink.co.uk>,
+ released to the public domain. }
+
+
+{ Common definitions used by DELPHMID.DPR and the MIDI components.
+ This must be a separate unit to prevent large chunks of the VCL being
+ linked into the DLL. }
+unit Mididefs;
+
+interface
+
+uses WinProcs, WinTypes, MMsystem, Circbuf;
+
+type
+
+ {-------------------------------------------------------------------}
+ { This is the information about the control that must be accessed by
+ the MIDI input callback function in the DLL at interrupt time }
+ PMidiCtlInfo = ^TMidiCtlInfo;
+ TMidiCtlInfo = record
+ hMem: THandle; { Memory handle for this record }
+ PBuffer: PCircularBuffer; { Pointer to the MIDI input data buffer }
+ hWindow: HWnd; { Control's window handle }
+ SysexOnly: Boolean; { Only process System Exclusive input }
+ end;
+
+ { Information for the output timer callback function, also required at
+ interrupt time. }
+ PMidiOutTimerInfo = ^TMidiOutTimerInfo;
+ TMidiOutTimerInfo = record
+ hMem: THandle; { Memory handle for this record }
+ PBuffer: PCircularBuffer; { Pointer to MIDI output data buffer }
+ hWindow: HWnd; { Control's window handle }
+ TimeToNextEvent: DWORD; { Delay to next event after timer set }
+ MIDIHandle: HMidiOut; { MIDI handle to send output to
+ (copy of component's FMidiHandle property) }
+ PeriodMin: Word; { Multimedia timer minimum period supported }
+ PeriodMax: Word; { Multimedia timer maximum period supported }
+ TimerId: Word; { Multimedia timer ID of current event }
+ end;
+
+implementation
+
+
+end.