Regarding inability of Python Module Winsound to produce beep in decimal frequency

Chris Angelico rosuav at gmail.com
Mon Aug 16 23:00:42 EDT 2021


On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun <eryksun at gmail.com> wrote:
>
> On 8/16/21, Roel Schroeven <roel at roelschroeven.net> wrote:
> >
> > We're not necessarily talking about the PC speaker here: (almost) all
> > computers these days have sound cards (mostly integrated on the
> > motherboard) that are much more capable than those one-bit PC speakers.
>
> Yes, the PC speaker beep does not get used in Windows 7+. The beep
> device object is retained for compatibility, but it redirects the
> request to a task in the user's session (which could be a remote
> desktop session) that generates a WAV buffer in memory and plays it
> via PlaySound().

That seems a bizarre way to handle it. What happens if you have
multiple sound cards? Or if a program needs to get the user's
attention despite headphones being connected to the sound card? That's
what the PC speaker is for, and I would be quite surprised if Windows
just says "nahh that doesn't matter".

ChrisA


More information about the Python-list mailing list