home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: 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
-
-
- 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/
-