home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
s
/
snip1292.zip
/
SOUND.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-14
|
598b
|
31 lines
/*
** SOUND.C
**
** Original Copyright 1988-1991 by Bob Stout as part of
** the MicroFirm Function Library (MFL)
**
** This subset version is functionally identical to the
** version originally published by the author in Tech Specialist
** magazine and is hereby donated to the public domain.
*/
#include "sound.h"
void soundon(void)
{
short value;
value = inp(SCNTRL);
value |= SOUNDON;
outp(SCNTRL, value);
}
void soundoff(void)
{
short value;
value = inp(SCNTRL);
value &= SOUNDOFF;
outp(SCNTRL, value);
}