home *** CD-ROM | disk | FTP | other *** search
- {
- This program will TRY to play the Sound Blaster's .VOC files.
-
- It might not work if you have changed the Factory setup of the
- Sound Blaster, But i guess most you guys didnt touch it...
-
- So, If you have any problems call me at : 04-331277 and i might
- be able to help you, Ask for Yaron.
-
- NOTICE: The number is in Israel.
-
- Global number should be : +1-972-4-336582
- }
-
- {$M 16384,0,0}
-
- Uses SBVoice,Crt; { Using the Sound Blaster unit and CRT unit }
-
- Begin
- ClrScr;
- Writeln('Demo for using the Pascal''s Sound Blaster unit.'+Chr(10));
- Writeln('Demo - (C) 1991 Crash Line Systems inc.');
- Writeln('Unit - (C) 1991 Amit K. Mathur.'+Chr(10));
- If ParamCount = 1 then { If one parameter is given then start playing }
- Begin
- Writeln('Playing: ',ParamStr(1)+Chr(10));
- LoadVoice(ParamStr(1),0,0); { Load the VOC file into memory }
- SB_SetStatusWord(seg(statusword),ofs(statusword)); { Check for end of VOC }
- SB_Output(seg(soundfile),ofs(soundfile)+26); { Play the VOC itself }
- While not StatusWord=0 do; { Wait till thr VOC has finished playing }
- SB_UnInstall;
- End;
- If ParamCount <> 1 then
- Begin
- Writeln(Chr(10)+'Usage: DEMO [d:\path\]filename.voc'+Chr(10));
- Halt;
- End;
- End.
-