summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/SNIP/sound.c
blob: 2979ce52158d93eb66f06022098993909d44ef43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
**  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);
}