aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/midi/MidiDefs.pas
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2013-11-30 21:59:39 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2013-11-30 21:59:39 +0000
commit70fb72e89b2ee068ee3a8585b21dd4e32100d23e (patch)
treea453afe47e0027001af500e72884b8ad662af985 /src/lib/midi/MidiDefs.pas
parente171c972ba120a0eaccf513170b5a19edb33dd5d (diff)
downloadusdx-70fb72e89b2ee068ee3a8585b21dd4e32100d23e.tar.gz
usdx-70fb72e89b2ee068ee3a8585b21dd4e32100d23e.tar.xz
usdx-70fb72e89b2ee068ee3a8585b21dd4e32100d23e.zip
rename filenames and unify naming. No code change.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3009 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib/midi/MidiDefs.pas')
-rw-r--r--src/lib/midi/MidiDefs.pas55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/midi/MidiDefs.pas b/src/lib/midi/MidiDefs.pas
new file mode 100644
index 00000000..f14b5e77
--- /dev/null
+++ b/src/lib/midi/MidiDefs.pas
@@ -0,0 +1,55 @@
+{ $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
+
+{$IFDEF FPC}
+ {$MODE Delphi}
+ {$H+} // use long strings
+{$ENDIF}
+
+uses
+ Windows,
+ 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.