Mail Archives: djgpp/2004/07/22/14:40:04
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 <glenn DOT blank AT Lehigh DOT EDU>:
> 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 <giva AT bgnett DOT no>:
>
> > "Eli Zaretskii" <eliz AT gnu DOT org> 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/
- Raw text -