From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#74863: 31.0.50; Problems with play-sound on MS-Windows Date: Sun, 15 Dec 2024 21:38:23 +0100 Message-ID: <1918b148-03b9-4b33-8779-12d448b95f7c@imayhem.com> References: <86a5cywt9b.fsf@gnu.org> <13c75eef-5ba3-4d2b-bc6a-f6e64860552a@imayhem.com> <861py9rtz0.fsf@gnu.org> <86a5cwrdd0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28677"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74863@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 21:39:13 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 1tMvOR-0007Gs-8v for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 21:39:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMvOL-0004IO-8W; Sun, 15 Dec 2024 15:39:05 -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 1tMvOK-0004I9-1N for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 15:39:04 -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 1tMvOJ-00039F-NO for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 15:39:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=H2fTJI8h0hVFn2cGT5N7zpyB72yZ38FTsOTUuaQQ4vw=; b=NeEq5gXPKieqVwixkEHdvrpNN7wHEuR5NaeeEH8xO8Uw13r/0ewV4kwr3mxB/Gr/8ATsrvST8YPxcxP7GWX6RmUcJMWM5Km2GXZRZOLdOosvVCQHFKZtM93Cn5Yy+C9igXJhvlmccfP7DaYPZdfRlP48r05xY9tcGMTDZu+4UfL9zH7956/7KIJ2POTLi902pzbSdwBaIdPMoNga9sm/UcHvaXy6JcWLIdAtXujn9AJne4aPabxYiNrAtFLLcFo+Ogek92btf7B0kKPpdbfgDoA1dTN50vuHj4OgdIS43k4/PbLgGLTEFpT8tTvh2XpX/PYbjihqQDbXYvtQBFrFBw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMvOJ-0001tY-HX for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 15:39:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2024 20:39:03 +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.17342951187229 (code B ref 74863); Sun, 15 Dec 2024 20:39:03 +0000 Original-Received: (at 74863) by debbugs.gnu.org; 15 Dec 2024 20:38:38 +0000 Original-Received: from localhost ([127.0.0.1]:52329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMvNo-0001sQ-UT for submit@debbugs.gnu.org; Sun, 15 Dec 2024 15:38:38 -0500 Original-Received: from mail.imayhem.com ([82.223.54.191]:37569 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMvNl-0001s9-Dy for 74863@debbugs.gnu.org; Sun, 15 Dec 2024 15:38:30 -0500 Original-Received: from [192.168.68.104] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id D89C08017F; Sun, 15 Dec 2024 20:38:23 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.104] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <86a5cwrdd0.fsf@gnu.org> 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:297133 Archived-At: On 15/12/2024 19:48, Eli Zaretskii wrote: >> 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? Everything (except the documentation) points to that.