home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Intermedia 1998 January
/
inter1_98.iso
/
www
/
rozi
/
HSC.ZIP
/
WWW.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1997-01-14
|
1KB
|
65 lines
Uses Crt,ADVHSC,dos;
Var i,jj,j:Byte;
xx:byte;
reg:registers;
PROCEDURE schowaj_kursor;
BEGIN
Reg.AX := $0300;
Intr($10,Reg);
reg.CX := Reg.CX or $2000;
reg.AX := $0100;
Intr($10,Reg);
END;
procedure rys(x:integer);
begin
textcolor(x);
write('▐');
end;
Begin
ClrScr;
schowaj_kursor;
if LOADSONG('music.HSC') then { Loading the Song Into Memory }
Begin
PLAYSONG; { Play The Song }
Repeat
GetPlayerState;
For i:=1 to 9 do
Begin
{write(' ');}
GotoXY(5,(i*2)+3);
if PlayerState.Equalizer[i]<>255 then
Begin
xx:=PlayerState.Equalizer[i];
{write(xx);}
if (xx>-1) and (xx<6) then
begin
for j:=1 to xx do rys(lightgreen);
For j:=Playerstate.Equalizer[i] to 15 do Write(' ');
end;
if (xx>5) and (xx<10) then
begin
for j:=1 to 5 do rys(lightgreen);
for j:=6 to xx do rys(yellow);
For j:=Playerstate.Equalizer[i] to 15 do Write(' ');
end;
if xx>10 then
begin
for j:=1 to 5 do rys(lightgreen);
for j:=6 to 11 do rys(yellow);
for j:=11 to xx do rys(red);
For j:=Playerstate.Equalizer[i] to 15 do Write(' ');
End;
end;
end;
Until KeyPressed;
fadesong;
{delay(2000);}
STOPSONG; { Stop The Player }
CLEARMEM; { Free Memory }
End;
End.