On 23/07/13 17:52, nev young wrote:
I want to make the speakers on my PC go beep or beeeep.
Currently writing a project in C but I'm pretty flexible on source language.
Owd Skool perhaps, but for a console app, perhaps printf("\a"); would work? This http://wiki.bash-hackers.org/commands/builtin/printf says "A" is the alert character, AKA Bell, or beep I think. Alternatively, someway of echoing the relevant ascii character. I think it's equivalent to ctrl-G. Failing that, I'm sure there's some way of controlling the speaker, but I bet it involves various libraries etc. On a whim, I typed in "beep" and got told that it wasn't installed. I installed it, it's supposed to work, but I get nothing. Info on beep here http://manpages.ubuntu.com/manpages/hardy/man1/beep.1.html Further research http://superuser.com/questions/22767/enable-system-beep-in-ubuntu I found that then last comment "mplayer -ao alsa ..." worked for me. HTH Steve