I just want to hear a beep! Ok and a beep-beep would be great. I found on a book the sound command but I cannot get it work! I try sound (440); nothing happens! I use Free Pascal, latest version. PLS help! Thank you in advance.
: I just want to hear a beep! Ok and a beep-beep would be great. I found on a book the sound command but I cannot get it work! I try : sound (440); : nothing happens! I use Free Pascal, latest version. PLS help! : Thank you in advance. : : The crt function sound (hz : word); is not supported under Windows. It is supossed to play the defaul windows sound. This is how the original function looks like in "crt.pp". [CODE] procedure sound(hz : word); begin MessageBeep(0); { lame ;-) } end; [/CODE] The function would probably work under DOS, but in windows try using win api if you realy need sound. And there are some units out there for the Sound Blaster...
Comments
: sound (440);
: nothing happens! I use Free Pascal, latest version. PLS help!
: Thank you in advance.
:
:
The crt function sound (hz : word); is not supported under Windows. It is supossed to play the defaul windows sound. This is how the original function looks like in "crt.pp".
[CODE]
procedure sound(hz : word);
begin
MessageBeep(0); { lame ;-) }
end;
[/CODE]
The function would probably work under DOS, but in windows try using win api if you realy need sound. And there are some units out there for the Sound Blaster...