Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Brain off-line, please wait.


devel / comp.lang.python / Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

SubjectAuthor
o Re: Regarding inability of Python Module Winsound to produce beep inChris Angelico

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

<mailman.408.1629169256.4164.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=14637&group=comp.lang.python#14637

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Regarding inability of Python Module Winsound to produce beep in
decimal frequency
Date: Tue, 17 Aug 2021 13:00:42 +1000
Lines: 21
Message-ID: <mailman.408.1629169256.4164.python-list@python.org>
References: <CAGnkz7FtQ5krADv6Z67eZFk1Cx+9dA6-FYd39L9jm9aQn33x4g@mail.gmail.com>
<sf644o$14e0$1@ciao.gmane.io>
<CAPTjJmqwz0Rjin9Xj-Lskj8TxUOu=Pxfk2ZgLpkDk7r6z-ef7g@mail.gmail.com>
<396db396-272b-b7a4-2daf-92e26d005535@mrabarnett.plus.com>
<20210815130117.03c23726@e7240.home>
<CAPTjJmrJ5D-v_3C3HG2MfvkTFYqWUZtX_cuQ9Mhz=b6qS5QDdw@mail.gmail.com>
<6068cc72-6377-458d-0bde-35919f327782@roelschroeven.net>
<CACL+1atUCiwA9f0zw4WSV-9aoDa3EOjk-C=a90p+--=jg_=T-w@mail.gmail.com>
<CAPTjJmpY0T9Aqsvi4cFFZRaSU2Jxfk85_Hbf_S_VdU_JrM4esQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de dl+V1S8slWvdojlDv7yFVA4wgAu3eMiCt8hwkdFN4ZQQ==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=uzzsoSfg;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '17,': 0.03; '(which':
0.04; 'cards': 0.07; 'despite': 0.07; '11:44': 0.09; 'aug': 0.09;
'roel': 0.09; 'schroeven': 0.09; 'subject:Python': 0.12; 'card?':
0.16; 'chrisa': 0.16; 'computers': 0.16; 'eryk': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'generates': 0.16; 'headphones': 0.16; 'session)': 0.16;
'subject:Module': 0.16; 'subject:frequency': 0.16; 'wrote:': 0.16;
'memory': 0.16; 'says': 0.16; 'speaker': 0.18; 'tue,': 0.18;
'object': 0.23; 'to:addr:python-list': 0.23; 'seems': 0.26;
'task': 0.27; 'but': 0.31; "doesn't": 0.32; 'to:name:python':
0.32; 'message-id:@mail.gmail.com': 0.33; 'program': 0.33;
'received:209.85.166': 0.33; 'header:In-Reply-To:1': 0.33;
'received:google.com': 0.34; "we're": 0.35; 'necessarily': 0.35;
'yes,': 0.35; 'from:addr:gmail.com': 0.35; 'request': 0.35;
'windows': 0.36; 'way': 0.37; "that's": 0.37; 'handle': 0.37;
'received:209.85': 0.38; 'those': 0.38; 'received:209': 0.38;
'does': 0.38; 'could': 0.40; 'days': 0.61; 'desktop': 0.63;
'capable': 0.65; 'talking': 0.65; 'attention': 0.74; 'happens':
0.75; '2021': 0.84; 'redirects': 0.84; 'surprised': 0.84; 'plays':
0.91; 'retained': 0.91; 'subject:Regarding': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=Qx82fVgWMwlOqYoVSXSiIa8JYr5w4H7yXFZUen5qwrc=;
b=uzzsoSfgk4gSryEyM866yPP5fxmkiRNLW56pp5C9QDuHyDto93H1McOFHXhPW0NUWW
6DtGsJz4zFHKJuizm9Z7zKCyGCi1QzCGYVJLymeFovw5cnw9uh5xQZvsXUfAjnnYDLYJ
RalAuHpC7PTGxBqX0lQO9faFML2xfPhBwCB9YOyZA6lLoBmfV91dXCuPN0eMRo7LlVfh
K+dhlFADckPU4zcrmKOGPWA8xjsCGljE4DhXID8ozCZmVm/LjAYmPyRzadSSe6ihOPt7
exFcPjhI9LINgr1KF+MPfaRDng76pxbw+ZfnC7sNPtrmK7e31XGXfcqI3RCC/LOEsgIK
znGQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=Qx82fVgWMwlOqYoVSXSiIa8JYr5w4H7yXFZUen5qwrc=;
b=EsOekgZnDT+/Y+VyYxQHBAL3sArv0QQw0f8AcDXgg77ZF6Z/mw6sOS+QSpBJYRGwfd
HOhkmPFbZUp02xZ8T4+tDlIAnfTRXC0uMsdF/Yy6VB9sJRFYrwA9LywXw8N4R+EXgiTA
e0djdz1VOeefJJPwI8ThHN6LtcORbwhjY7S36XCZske0MLx/9mNiTPw+CQ9kxEBkKDK5
W8g8JJ5E0EicZVgezrU3RHAOVn7D4kaz+a1QzorOhgMrv6ep0LKh7DItDIdO30z2EMkp
a/ysD3iNyDUqOVxy4q7mdF6nCOSM1ZT+J9wGfle5B7AKlYtEDvU/s73WQqXOb5IgfZi6
MQwQ==
X-Gm-Message-State: AOAM5315IQNfDzu5350Nau8IaUvkjdjaSJlb/Lq5ta/jgEN4qWf8O+Eo
HEZXVlU27vauk+EuheibJPvppKcF+H53TH9BuAk65ViH
X-Google-Smtp-Source: ABdhPJwdzOqKq/AJLTf+d2wqJctNBdB/HOP+92hU0SP3TqYGmucg4Gi202CatbwIo+H5bLpQysS3dZaq/JCNVNoYBwo=
X-Received: by 2002:a92:da87:: with SMTP id u7mr838859iln.297.1629169253328;
Mon, 16 Aug 2021 20:00:53 -0700 (PDT)
In-Reply-To: <CACL+1atUCiwA9f0zw4WSV-9aoDa3EOjk-C=a90p+--=jg_=T-w@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmpY0T9Aqsvi4cFFZRaSU2Jxfk85_Hbf_S_VdU_JrM4esQ@mail.gmail.com>
X-Mailman-Original-References: <CAGnkz7FtQ5krADv6Z67eZFk1Cx+9dA6-FYd39L9jm9aQn33x4g@mail.gmail.com>
<sf644o$14e0$1@ciao.gmane.io>
<CAPTjJmqwz0Rjin9Xj-Lskj8TxUOu=Pxfk2ZgLpkDk7r6z-ef7g@mail.gmail.com>
<396db396-272b-b7a4-2daf-92e26d005535@mrabarnett.plus.com>
<20210815130117.03c23726@e7240.home>
<CAPTjJmrJ5D-v_3C3HG2MfvkTFYqWUZtX_cuQ9Mhz=b6qS5QDdw@mail.gmail.com>
<6068cc72-6377-458d-0bde-35919f327782@roelschroeven.net>
<CACL+1atUCiwA9f0zw4WSV-9aoDa3EOjk-C=a90p+--=jg_=T-w@mail.gmail.com>
 by: Chris Angelico - Tue, 17 Aug 2021 03:00 UTC

On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun <eryksun@gmail.com> wrote:
>
> On 8/16/21, Roel Schroeven <roel@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

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor