Article View: comp.os.os2.programmer
Article #1334How to access the speaker with GCC/2
From: Cedric Baechler HE9CUN
Date: Wed, 02 Sep 1992 12:28
Date: Wed, 02 Sep 1992 12:28
21 lines
1166 bytes
1166 bytes
I have the GCC/2 2.1 C compiler and I'd like to write a small program
to play Morse code.
I don't have any Books about OS/2 so I can't find out how to produce sounds
with the speaker.
What I need:
- A function like: sound(int freq)
- a function like: stopsound()
- and a function like: void delay(int milliseconds) that wait for the given
time.
Thanks in advance for any help.
Regards:
---
Cedric Baechler, ETH Zurich, Switzerland
Internet: cbaechle@iiic.ethz.ch, cedric@uska.xgc.imp.com
UUCP : impch!ixgch!uska!{cedric,he9cun}
FidoNet : 2:301/714.74
X.400 : /S=cedric/OU=uska/OU=xgc/OU=imp/O=com/PRMD=switch/ADMD=arcom/C=CH/
Technical Details
Message-ID:
<1992Sep2.122819.14278@neptune.inf.ethz.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!chx400!bernina!neptune!cbaechleShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ira.uka.de!chx400!bernina!neptune!cbaechle From: cbaechle@iiic.ethz.ch (Cedric Baechler HE9CUN) Subject: How to access the speaker with GCC/2 Message-ID: <1992Sep2.122819.14278@neptune.inf.ethz.ch> Originator: cbaechle@c17 Sender: news@neptune.inf.ethz.ch (Mr News) Nntp-Posting-Host: c17 Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH) Date: Wed, 2 Sep 1992 12:28:19 GMT Lines: 21