From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74863: 31.0.50; Problems with play-sound on MS-Windows Date: Sun, 15 Dec 2024 20:48:59 +0200 Message-ID: <86a5cwrdd0.fsf@gnu.org> References: <86a5cywt9b.fsf@gnu.org> <13c75eef-5ba3-4d2b-bc6a-f6e64860552a@imayhem.com> <861py9rtz0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17798"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74863@debbugs.gnu.org To: Cecilio Pardo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 19:52:20 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tMtj0-0004Sl-Em for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 19:52:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMtim-000620-U4; Sun, 15 Dec 2024 13:52:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMtil-00061d-4w for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:52:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMtik-0007R5-It for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Gf3nUaE+PPF+GR89Cf/AOTWf3DTx32E1LDFg/n/SWCA=; b=CmbopqmqVQLU57KALXRn8QW/Y/0fx42TGIy8soT6+X7ojZxGXkMe9JU61GbKz+L8s5FeERD8UtGaijVWMHVddwtpT9qmf6/kZQteh0MtlK/Bq8XMYEHa+aq8W7XOkNuFxSpc4H3bADfSRIocaCqnXWDTrrK5LDM52cJHZhdyPKD56GgqUFPxzsWcOBnWLg2EgSJCzApBgnw57P427aDKLSB7ZmQGP3FE2MMxWPyeGEB19vIcU/K/HFxbF/21QRNlxYtf8/JeBpeeaddexzjO1l0ZAr1yw0+VL5TcCZBNG8C9bKeHLJsHZUVt95b6lfdoMpPlAseTRV8u3XlDZqIPYQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMtik-00055A-Db for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 13:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 18:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74863 X-GNU-PR-Package: emacs Original-Received: via spool by 74863-submit@debbugs.gnu.org id=B74863.173428868519473 (code B ref 74863); Sun, 15 Dec 2024 18:52:02 +0000 Original-Received: (at 74863) by debbugs.gnu.org; 15 Dec 2024 18:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:52084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMti8-000541-IR for submit@debbugs.gnu.org; Sun, 15 Dec 2024 13:51:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMti6-00053l-4z for 74863@debbugs.gnu.org; Sun, 15 Dec 2024 13:51:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMtfu-0007Ah-Bx; Sun, 15 Dec 2024 13:49:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Gf3nUaE+PPF+GR89Cf/AOTWf3DTx32E1LDFg/n/SWCA=; b=Svp4OaJm8MPg c9veDLwopXAsSmxsD27XGGTAJ4XeAhM2hrPqGSpSrxPpoG5c7Jl9rOXyoMXHCMe706Tfd94GJC2G7 eAyv6Mo07+/g1y4d4ch7rtKDhm7Lu64Ln3lAEynldUjYFX9oq1Qcmq10xi3mLus2tJQO2ZxcxrHwR KEcU2QxQ5Nb21whVWU2BF8D45/fwlxYvnpvHwQWlXaCCTYAtmAd+fSWQQ96/qqX/ZJhBkOSkYX3Xi fCYOFS6unhY7Kb42cW82IzQZv5v8o65zZgSM/NLYqH/UdUiHJkHXwvtevfRQClUVihnjg4fv1WTWn sPjJCwXcdZNjipWLKWMKUw==; In-Reply-To: (message from Cecilio Pardo on Sun, 15 Dec 2024 19:33:35 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297127 Archived-At: > Date: Sun, 15 Dec 2024 19:33:35 +0100 > Cc: 74863@debbugs.gnu.org > From: Cecilio Pardo > > >> + if (in_memory) > >> + i_result = !PlaySound (psz_file_or_data, NULL, SND_MEMORY); > > > > AFAIU, the documentation seems to say that the string passed as the > > first argument to PlaySound is limited to 256 characters (i.e. bytes)? > > If so, how do we play longer sounds? > > I think this limitation applies only when the argument points to a > string, and not when using SND_MEMORY, which is documented with: "The > pszSound parameter points to a sound loaded in memory." > > It's true the documentation doesn't say so, and I haven't found any > clarification by Microsoft, but SND_MEMORY would be useless otherwise. > Also I see normal usage searching the internet. So there are no limitations whatsoever on the length of that string?