-
Notifications
You must be signed in to change notification settings - Fork 0
plays "Iron Maiden - Fear Of The Dark" through PC build-in speaker under DOS/Windows/Linux/FreeBSD
creaktive/daemoniac
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Demoniac v0.666a -- DAEMON'iac Advisor ====================================== Coded by Stas (Mail: stanis@linuxmail.org; URL: http://sysd.org/); (C)opyLeft by SysD Destructive Labs, 1997-2004 DESCRIPTION: Produces sound (in this specific case, the beginning of Iron Maiden song "Fear Of The Dark") on internal PC Speaker hardware. Compiles and works on: * DOS (DJGPP, Turbo C) * Windows 9x/NT/2K/XP (Borland C, Microsoft Visual C, MinGW) * Linux (gcc) * FreeBSD (gcc) (see compiling instructions below) Can be useful to provide audible alert without acessing soundcard. Requires superuser powers except for Windows NT/2K/XP (note that superuser is default mode for DOS & Windows 9x ;) This code is also supposed to be portable to *any* OS that runs on i386 architecture. Other architectures are not supported and neither will be! COMPILING: * Compile on Linux & FreeBSD with: gcc -O2 -o demoniac demoniac.c; strip demoniac * Compile Windows generic with: gcc -O2 -o demoniac.exe demoniac.c strip demoniac.exe or cl demoniac.c or bcc32 demoniac.c * Compile Windows 9x-specific (for debugging) with: gcc -D_WIN9X -O2 -o demoniac.exe demoniac.c or cl -D_WIN9X demoniac.c or bcc32 -D_WIN9X demoniac.c * Compile Windows NT/2K/XP-specific (for debugging) with: gcc -D_WINNT -O2 -o demoniac.exe demoniac.c or cl -D_WINNT demoniac.c or bcc32 -D_WINNT demoniac.c * Compile on DOS under Turbo C: tcc -O demoniac.c * Compile on DOS under DJGPP: gcc -O2 -o demoniac.exe demoniac.c strip demoniac Note: you might try -DNOFEAR compiler flag if you want more simple music. (this WAS the original music played by demoniac 0.1b ;) USAGE: Reprogram sound in the way you want and paste into your own source :) BUGS: * Sound timing is different on different circunstances. * Sound finalization isn't properly handled on DOS/Win9x. THANKS: * Dr. Checks, for music conversion * Iron Maiden, for music itself :) * Linus Torvalds, for /usr/src/linux/include/asm-i386 * Peter Norton, for PC speaker controlling algorithm * Riku Saikkonen, for his IO-Port-Programming-HOWTO * The Snowblind Alliance, for Rio utility v1.07 * t0p, for idea of daemon beeper
About
plays "Iron Maiden - Fear Of The Dark" through PC build-in speaker under DOS/Windows/Linux/FreeBSD