X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Authentication-Warning: IMP0.CC.Lehigh.EDU: apache set sender to glenn DOT blank AT lehigh DOT edu using -f Message-ID: <1090521592.410009f8a20d5@IMP.Lehigh.EDU> Date: Thu, 22 Jul 2004 14:39:52 -0400 From: Glenn Blank To: djgpp AT delorie DOT com Subject: Re: sound() function References: <7137-Tue20Jul2004073550+0300-eliz AT gnu DOT org> <20040720050354 DOT 16492 DOT 00000149 AT mb-m14 DOT aol DOT com> <6480-Tue20Jul2004221044+0300-eliz AT gnu DOT org> <1090364073 DOT 40fda2a984473 AT IMP DOT Lehigh DOT EDU> <1090371877 DOT 40fdc12536e68 AT IMP DOT Lehigh DOT EDU> <3405-Wed21Jul2004061452+0300-eliz AT gnu DOT org> <0a4901c46f15$c4ff5280$0600000a AT broadpark DOT no> <1090425008 DOT 40fe90b04308c AT IMP DOT Lehigh DOT EDU> In-Reply-To: <1090425008.40fe90b04308c@IMP.Lehigh.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 128.180.122.230 Reply-To: djgpp AT delorie DOT com Since it appears that gcc can no longer play sound through the internal speaker, does anyone know how to play through the external speakers (sound card)? Is there a library that does this? glenn Quoting Glenn Blank : > Well, Gisle's note might be encouraging, if sound() can be made to > work. So I tried recompiling my program using usleep(), declared in > unistd.h, instead of delay(). No dice. The sound still doesn't play. > Any more suggestions? > > Quoting Gisle Vanem : > > > "Eli Zaretskii" said: > > > > > Sorry, you are out of luck: `sound' works by writing to a certain > > > port, and XP doesn't allow direct access to ports. So it cannot work > > > on XP. > > > > Not true. sound() writes to ports 42h, 43h and 61h which works fine > > under Win-XP here (the port access is virtualised). > > > > Maybe the OP uses delay() to hear the beep. djgpp's > > delay() as we know has problems under Win-NT. So he should > > use usleep() instead. > > > > --gv > > > > > -- > Glenn D. Blank > Computer Science and Engineering Department > 19 Packard Lab > Lehigh University > Bethlehem, PA 18104 > http://www.cse.lehigh.edu/~glennb > > -- > Glenn D. Blank > Computer Science and Engineering Department > 19 Packard Lab > Lehigh University > Bethlehem, PA 18104 > http://www.cse.lehigh.edu/~glennb > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > -- Glenn D. Blank Computer Science and Engineering Department 19 Packard Lab Lehigh University Bethlehem, PA 18104 http://www.cse.lehigh.edu/~glennb ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/