home *** CD-ROM | disk | FTP | other *** search
- {$M 2024,0,10000}
- {**************************************************************************
-
- CMSDEMO
- Program to test CMSPRG
-
- Date: 6/5/91
- Version: 1
-
- ***************************************************************************
-
- Copyright (c) 1991, Zackzon Labs.
-
- Author: Anthony Rumble
-
- ==========
- Addresses:
- ==========
- InterNet: c9106510@cc.newcastle.edu
- FIDONet: 3:713/802.3
- SIGNet: 28:2500/102
- or : 28:2200/102.2
-
- Snail Mail:
- 32 Woolwich Rd.
- Hunters Hill, NSW, 2110
- Australia
-
- -------------------------------------------------------------------------
- HISTORY
- -------------------------------------------------------------------------
- 1.0 - Works fine so far
- *************************************************************************}
- program cmsdemo;
-
- uses crt, cmsprg;
-
- var
- muzak:pointer;
- version:word;
- ch:char;
-
- begin
- writeln('Play CMS Demo. By Anthony Rumble.');
- writeln('Copyright (c) Zackzon Labs');
- if paramcount<1 then
- begin
- writeln('Help.');
- writeln('Command Line Options');
- writeln('CMSDEMO <filename.CMS>');
- writeln('Plays the CMS file filename.CMS');
- writeln;
- halt(1);
- end;
- if initialize then writeln('CMSDRV Active') else
- begin
- writeln('CMSDRV not Active');
- halt(1);
- end;
- version:=CMS_Get_Version;
- writeln('Version ',hi(version),'.',lo(version));
- muzak:=CMS_Load_CMS(paramstr(1));
- if not CMS_Play_Music(muzak) then
- begin
- writeln('Problem Playing Music');
- halt(1);
- end;
- repeat;
- write('Status = ',status);
- write(#13);
- until ((keypressed) or (status=0));
- if keypressed then ch:=readkey;
- CMS_Stop_Music;
- end.
-