www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/13/08:26:25

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sound.c
Date: 13 Mar 2001 13:15:38 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 16
Message-ID: <98l6hq$lak$1@nets3.rz.RWTH-Aachen.DE>
References: <001701c0abbb$bea9b180$8de8bec8 AT LocalHost>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 984489338 21844 137.226.32.75 (13 Mar 2001 13:15:38 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 13 Mar 2001 13:15:38 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

csimal <csimal AT brfree DOT com DOT br> wrote:

> I am a beginner in C programming and i want to play notes with
> sound() by a sound blaster / pro card (DOS box - win9x). I would like
> to know if this is possible by changing the outportb adresses in
> sound.c

No.  You'ld have to change the whole access pattern, not just the port
numbers. The PC Speaker which sound() is made for is controlled in a
completely different way than a SoundBlaster card. You'll be better
off writing a new routine rather than trying to hijack the existing
sound().

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019