Category : Pascal Source Code
Archive   : PNL010.ZIP
Filename : PLAYDIGI.PAS

 
Output of file : PLAYDIGI.PAS contained in archive : PNL010.ZIP
Program PlayDigi;

Uses Crt, DigiSnd;

Var
Resplay : ResplayObject;
FileName : String;
Ch : Char;
Freq, Temp : Integer;


{main program}
begin
WriteLn('Playback Sample - by Alex Boisvert');
WriteLn('==================================');
WriteLn;
If (ParamCount < 1) or (ParamStr(1)='') then begin
Write('þ Enter filename: ');
ReadLn(FileName);
end else FileName := ParamStr(1);
Val(ParamStr(2),Freq,Temp);
If (ParamCount < 2) or (Freq = 0) then begin
Write('þ Enter frequency in kHz: ');
ReadLn(Freq);
end;
WriteLn('þ Memory Available: ',(MemAvail/1024):0:0,'k');
Resplay.Init;
if not Resplay.Setup(0,4, Freq * 4) then begin
WriteLn('þ Cannot Initialize Resplay!');
Halt;
end;
Resplay.Load(FileName);
WriteLn('þ Size of digital sample: ',(Resplay.SoundSize/1024):0:0,'k');
If not Resplay.EntireFileLoaded then WriteLn('þ Entire file not loaded.');
Resplay.Play;
Resplay.Done;
WriteLn('þ Done.');
WriteLn;
end.


  3 Responses to “Category : Pascal Source Code
Archive   : PNL010.ZIP
Filename : PLAYDIGI.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/