home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
c
/
snippets
/
sound.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-03
|
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);
}