home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
PASHSC11.ZIP
/
TSTHSC.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1994-05-24
|
1KB
|
51 lines
PROGRAM TestHscUnit;
(* Demo program for PLAYHSC unit by GLAMOROUS RAY^RADiCAL RHYTHMS *)
(* The enclosed songs are copyrighted. CRYSTAL2 (c) Chris Korte, *)
(* FANTASY (linked as object) (c) NEO Software *)
(* Feel free to use this code as the base for your programs! *)
USES PLAYHSC,CRT;
VAR
Music : HSC_obj;
{$F+} (* Declaration *)
{$L MUSIC.OBJ} (* for *)
PROCEDURE MUSIC_DATA; EXTERNAL; (* external *)
{$F-} (* sound data *)
PROCEDURE WaitKey;
VAR
Dummy : CHAR;
a : INTEGER;
BEGIN
REPEAT
Music.GetInfo;
GotoXY (1,2);
FOR a := 1 TO 39 DO Write (Music.Info[a]);
ClrEol;
UNTIL KeyPressed;
WHILE KeyPressed DO Dummy := ReadKey;
END;
BEGIN
ClrScr;
WriteLN ('Small example for PLAYHSC V1.x - (w) 1994 by '+
'RAY^RADiCAL RHYTHMS');
Music.Init(0);
Music.LoadMem (@MUSIC_DATA); (* included file, using binobj.exe *)
Music.Start;
WaitKey;
IF Music.LoadFile ('CRYSTAL2.HSC') THEN BEGIN
Music.Start;
WaitKey;
END;
Music.Fade;
Delay (4000);
Music.Done;
END.