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

Chris Angelico rosuav at gmail.com
Tue Aug 17 01:11:05 EDT 2021


On Tue, Aug 17, 2021 at 1:50 PM Eryk Sun <eryksun at gmail.com> wrote:
>
> On 8/16/21, Chris Angelico <rosuav at gmail.com> wrote:
> > On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun <eryksun at gmail.com> wrote:
> >
> >> 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.
>
> Check the documentation [1]:
>
>     In Windows 7, Beep was rewritten to pass the beep to the default sound
>     device for the session. This is normally the sound card, except when
>     run under Terminal Services, in which case the beep is rendered on the
>     client.
>

Huh. Okay. Then I withdraw the concern from this list, and instead lay
it at Microsoft's feet. That is, I maintain, a bizarre choice. Surely
there are better ways to trigger audio on the sound card?

ChrisA


More information about the Python-list mailing list