View Full Version : Beep
TomTop
10-29-2014, 07:32 PM
Hey,
How can I make my program play a beep after X seconds?
I know I could use the PlaySound() function, and just download a beep sound, but is there any other way?
I downloaded a plugin from a little while back, but it doesn't work (for me).
Thanks.
Brandon
10-29-2014, 08:06 PM
How can I make my program play a beep..
writeln(#7);
KeepBotting
10-29-2014, 10:39 PM
writeln(#7);
Writeln plays sounds? Even I didn't know that. Jeebus.
Brandon
10-29-2014, 11:13 PM
Writeln plays sounds? Even I didn't know that. Jeebus.
This is language agnostic -- as far as I am aware. http://www.asciitable.com/
Character 0x07.
Incurable
10-29-2014, 11:27 PM
writeln(#7);
That's awesome. :o
Are there other sounds that can be made?
Brandon
10-30-2014, 10:49 PM
That's awesome. :o
Are there other sounds that can be made?
Yes. You can change the pitch and hz of the output sound. I don't remember how though. The above one is called System Bell. There's a few others that happen when you print Unicode Characters. There is a function for the rest though. Not sure if Pascal has it or not.
Noob King
11-02-2014, 03:36 PM
This is language agnostic -- as far as I am aware. http://www.asciitable.com/
Character 0x07.
Is there a way I could get a hard copy of your brain?
TomTop
11-09-2014, 09:40 AM
writeln(#7);
Wow, thanks.
Is there any other code that'll make it run longer?
cosmasjdz
11-09-2014, 12:26 PM
Wow, thanks.
Is there any other code that'll make it run longer?
for i:0 to 100 do
begin
writeln(#7)
end;
for the worst occasion?
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.