Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!umich!sharkey!tygra!dave From: dave@tygra.ddmi.com (David Conrad) Newsgroups: comp.lang.c Subject: Re: DIGITALIZED SOUND ON PC? Summary: IBM PC/PS/2 has no volume control Keywords: speaker, timer, volume Message-ID: <522@tygra.ddmi.com> Date: 20 Nov 90 10:49:28 GMT References: <11516@j.cc.purdue.edu> Reply-To: dave@tygra.UUCP (David Conrad) Followup-To: comp.sys.ibm.pc.hardware Organization: very little Lines: 24 In article <11516@j.cc.purdue.edu> zhou@brazil.psych.purdue.edu (Albert Zhou) writes: ) ) I want to output some digitalized sound signal to the speaker. The key- )point I figured out is to control the volume of the speaker. While you )can use "sound" to control frequency, Turbo does not provide direct access )to the speaker. I searched throughout my DOS manual and could not find )a interrupt for speaker. Does anybody have any clue on how to access speaker? The IBM PC/PS/2's speaker does not have a volume control. The speaker is driven by channel 2 of the system timer. Once channel 2 has been programmed for the desired frequency two bits in a control I/O port are used to indicate whether the speaker is on or off. There is no need to program the speaker directly as Turbo C's sound() and nosound() functions provide complete access to it, however if more specific info is desired follow this up in comp.sys.ibm.pc.hardware as this issue is not related to C. -- David R. Conrad dave@tygra.ddmi.com -- = CAT-TALK Conferencing Network, Computer Conferencing and File Archive = - 1-313-343-0800, 300/1200/2400/9600 baud, 8/N/1. New users use 'new' - = as a login id. AVAILABLE VIA PC-PURSUIT!!! (City code "MIDET") = E-MAIL Address: dave@DDMI.COM