Glider4/Glider_405/Sources/SMS.p
John Calhoun e178486ce8 Initial check-in
There was an effort to organize the files a little bit for presenting
in this repository. I hope I have included everything needed for both
Glider 4.05 and the Room Editor 1.0.3. The code is in Pascal — THINK
Pascal was used to build the original. I’m not sure how someone would
open the project files (or for that matter the resource files) these
days. Never mind there is also a .o file (SMS.a) representing a
statically linked library (from hand-coded 68K assembly) for doing
performant 4-channel sound on 68K Macs in the day (this was licensed
from Patrick Buckland — I’m sure he won’t mind my preserving it here
for posterity, right?). Art files, sound files of unknown format…. What
a joy it will be sleuthing through these files…. Enjoy.
2016-01-26 20:30:26 -08:00

1 line
2.2 KiB
OpenEdge ABL
Executable File

unit SMS;
interface
const
AnyChannel = -1;
SMSTime1 = 26;
SMSTime2 = 30;
SMSTime4 = 42;
procedure SMSInit;
procedure SMSExit;
procedure SMSSetMode (TheMode: Integer);
function SMSGetMode: Integer;
procedure SMSSwitcher (TheEvent: EventRecord);
procedure SMSStart (SoundID: Integer);
procedure SMSStartLo (SoundID: Integer);
procedure SMSStartMid (SoundID: Integer);
procedure SMSStartHi (SoundID: Integer);
procedure SMSStartChan (SoundID, Channel: Integer);
procedure SMSStartBind (SoundID: Integer; CompletionProc: Ptr);
procedure SMSStartGen (SoundID, Channel, Priority, Repetitions: Integer; CompletionProc: Ptr);
procedure SMSStop;
procedure SMSStopP (Priority: Integer);
procedure SMSStopChan (Channel: Integer);
procedure SMSStopGen (Channel, Priority: Integer);
procedure SMSLoad (SoundID: Integer);
procedure SMSUnload (SoundID: Integer);
procedure SMSLock (SoundID: Integer);
procedure SMSUnlock (SoundID: Integer);
procedure SMSSoundOn;
procedure SMSSoundOff;
procedure SMSSetState (State: Boolean);
function SMSGetState: Boolean;
function SMSChannelFree (Channel: Integer): Boolean;
function SMSDecompress (TheSound: Handle): Integer;
procedure SMSSetTiming (OneChan, TwoChan, ThreeChan: Integer);
function SMSSoundManager: Boolean;
implementation
procedure SMSInit;
EXTERNAL;
procedure SMSExit;
EXTERNAL;
procedure SMSSetMode;
EXTERNAL;
function SMSGetMode;
EXTERNAL;
procedure SMSSwitcher;
EXTERNAL;
procedure SMSStart;
EXTERNAL;
procedure SMSStartLo;
EXTERNAL;
procedure SMSStartMid;
EXTERNAL;
procedure SMSStartHi;
EXTERNAL;
procedure SMSStartChan;
EXTERNAL;
procedure SMSStartBind;
EXTERNAL;
procedure SMSStartGen;
EXTERNAL;
procedure SMSStop;
EXTERNAL;
procedure SMSStopP;
EXTERNAL;
procedure SMSStopChan;
EXTERNAL;
procedure SMSStopGen;
EXTERNAL;
procedure SMSLoad;
EXTERNAL;
procedure SMSUnload;
EXTERNAL;
procedure SMSLock;
EXTERNAL;
procedure SMSUnlock;
EXTERNAL;
procedure SMSSoundOn;
EXTERNAL;
procedure SMSSoundOff;
EXTERNAL;
procedure SMSSetState;
EXTERNAL;
function SMSGetState;
EXTERNAL;
function SMSChannelFree;
EXTERNAL;
function SMSDecompress;
EXTERNAL;
procedure SMSSetTiming;
EXTERNAL;
function SMSSoundManager: Boolean;
EXTERNAL;
end.