43
12
Your program has to make the computer produce a sound, any sound.
Shortest code wins, not sooner than 10 days after the first valid answer. If there is a tie, the one submitted sooner, wins.
- The program should run on a reasonable, not too uncommon personal computer.
- Opening a pop-up, message box, etc. (for example, on a web page) does not count, as they might or might not produce a sound, depending on a lot of settings.
- Just entering a wrong command or invalid character on a console and receiving a warning beep does not count, just as the compiler/interpreter/OS beeping on an error or crash does not count either. Your code must be a valid program.
My left fan has been dying noisily for a while. Would that be a valid 0 bit answer? – Édouard – 2015-09-29T00:11:43.353
1I think this question should be reopened. The joke answers that rely on the fan spinning or the CD tray opening are invalid, since the question says "play a sound". Seems pretty clear to me that the output needs to come from the speakers as a result of the program, not the OS or the user or the hardware. – mbomb007 – 2016-12-02T19:40:58.193
1^G aka system bell or OS beep may be suppressed on many systems too (e.g. switched to be a visible "bell") and should be handled like sounds of popus and so on too: Not a valid solution. – None – 2014-06-17T21:43:42.440
Every program that prints "\a" to a terminal fails if xterm uses a visible bell. – kernigh – 2014-06-18T23:42:16.970
19
rm /
will cause a lot of screaming. – cjfaure – 2014-06-22T17:23:26.037