rockin' PC speaker

Well, good old PC speaker is the only default hardware, easily available on almost all PC systems, and virtually unmuteable (actually, one can connect PC speaker output to his/her sound card instead of default buzzer, but this rarely happens Smiling. Thus, it is perfect for communicating critical states. But the default system beep is quite boring, and makes difficult to distinguish different events that are being communicated. So, here's my humble attempt to make a highly portable function that is able to play simple non-polyphonic music on the PC speaker. I used it originally to advise when someone tried to log in to my system through SSH daemon (thus the name "daemoniac" - demoniac Eye-wink. It was tested (and worked fine!) under:
  • DOS (DJGPP, Turbo C)
  • Windows 9x/NT/2K/XP (Borland C, Microsoft Visual C, MinGW)
  • Linux (gcc)
  • FreeBSD (gcc)
By default, demoniac will play Iron Maiden - Fear Of The Dark beginning. You can also compile it to play the simple "A#4 D#5 G5 A#5 G5 A#5" melody. Note that on UN*X systems, demoniac accesses hardware directly, and thus requires to run as root user. It's safe, through: it won't accept any command line arguments and neither process environment variables, so, at least, it can't be exploited with some buffer overflow technique. For detailed instructions about compiling demoniac on different compilers/systems, read the comments at the start of the source. Note that my package provides all the binaries generated on compilers/systems listed above.

Share/Save/Bookmark

stas's picture
stas » April 20, 2006 » 02:06

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

MBT Shoes

MBT Shoes is the first physiological footwear that has a positive effect on the whole body. MBT Trainers for Masai Barefoot Technology. MBT Chapa Shoe is also known as the anti-shoe.New MBT shoes- Physiological MBT UK on sale?the most comfortable shoes of specially designed sole. MBT Shoes Sale in more than 55 countries around the world and many enthusiastic users enjoy wearing MBTs.Instead of wasting time looking for true religion jeans and jeans true religion in stores, why not save yourself the trouble and get them from the True Religion Womens Fashions website instead? puma trainers is the global sportlifestyle brand known for fusing the influences of sport, lifestyle and fashion.puma shoes Canada was the first athletic brand that was not scared to bring fashion into the mix.Puma FAAS 300 puma speed cat puma speed cat shoes Puma Cat Sneakers puma speed cat trainers puma cat shoes puma cat trainers Cheap puma shoes womens puma shoes puma shoes sale Womens Puma Sneakers puma ferrari shoes Puma Ferrari Sneakers puma shoes men puma ducati shoes puma ducati sneakersugg boots for kids have moved beyond trendy and have become a kids' fashion staple. Their traditional boot might have been last year's biggest must-have, but the quality and practicality of their products make ugg boots sale for kids cool this year and every year. Unlike Women UGG boots, discount ugg boots kids' boots simply designed for comfortable feelings.If you want have more information about mulberry bags, it is possible to view our;mulberry bags sale;

MBT Shoes (not verified) » August 17, 2011 » 06:56

Post new comment

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Allowed HTML tags: <a> <i> <b> <u> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <hr>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.