Category : Utilities for DOS and Windows Machines
Archive   : CDNTIMER.ZIP
Filename : SOUND.C

 
Output of file : SOUND.C contained in archive : CDNTIMER.ZIP
#include

/**********************************TONE***********************************/
/* Produces tone at frequency, duration (of sound) */
/* Arguments in: freq [in Hz], dur [duration in millisec.] */
/*************************************************************************/

void tone( int freq, int dur )
{
sound( freq );
delay( dur );
nosound();
return;
}

/**************************************************************************/
/* Produces a "two-tone" sound (beep-boop) */
/**************************************************************************/
void two_tone()

{
int frequency,
duration;

frequency = 700;
duration = 165;
tone( frequency, duration );

frequency = 450;
duration = 110;
tone( frequency, duration );

}



/**************************************************************************/
/* BELL */
/* Produces a succession of 'beep' tones */
/* Takes 'times' as argument [# of times to beep] */
/**************************************************************************/

void bell( int times )

{
while( times-- )
{
tone(380,165);
delay (20 );
}
return;
}

/**************************************************************************/
/* BLATT */
/* Produces a "Bronx Cheer" */
/* [use with error routine] */
/**************************************************************************/

void blatt()

{
tone( 42,330 );
tone(34,220);
return;
}



  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : CDNTIMER.ZIP
Filename : SOUND.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/