🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #307

Re: Sound Port: Port # and Protocol?

#307
From: Jeremy K Summers
Date: Thu, 06 Aug 1992 11:34
20 lines
1460 bytes
boutell@isis.cshl.org (Tom Boutell) writes:

> I want to bang bits directly to the PC's sound port, rather than programming
> the oscillator as is normally done for single voice sound. (I'm playing
> around with pulse width modulation.) Can someone please provide me with
> the necessary port number? I assume I pretty much bang a one or zero to
> that port, depending; let me know if that assumption is correct also.
> 
The address for the speaker port is 61h, but this is also the address for 
several other things.  Bit 0 and bit 1 of Port 61h are the two 
controlling bits for the speaker. Bit 1 is used to turn the speaker on 
and off, and bit 0 switches between  direct speaker control with bit 1  
or control through the 8253 timer (channel 2).  I think what you were 
looking for was the bit one of 61h, simply turns speaker on and off.
Tell me if you need any explanation or details.

  J|eremy    |  /
  K|enneth   |_/  jks@jksclub.scol.pa.us
  S|ummers   | \  jks@hogbbs.scol.pa.us
         ____|__\
Technical Details
Message-ID: <X123oB1w164w@jksclub.scol.pa.us>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!ukma!widener!psuecl!hogbbs!jksclub!jks
References: <1992Aug5.155421.15098@cshl.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!darwin.sura.net!ukma!widener!psuecl!hogbbs!jksclub!jks
Newsgroups: comp.os.msdos.programmer,comp.sys.ibm.pc.programmer
Subject: Re: Sound Port: Port # and Protocol?
Message-ID: <X123oB1w164w@jksclub.scol.pa.us>
From: jks@jksclub.scol.pa.us (Jeremy K Summers)
Date: Thu, 06 Aug 92 07:34:56 EDT
References: <1992Aug5.155421.15098@cshl.org>
Organization: The Clubhouse, Bellefonte, PA
Lines: 20