From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.bugs Subject: bug#250: play-sound causes "Invalid sound specification" on valid :data (on Windows) Date: Mon, 12 Jan 2009 21:37:47 +0100 Message-ID: References: <4672E371.9050908@gmx.de> Reply-To: Juanma Barranquero , 250@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1231794406 23389 80.91.229.12 (12 Jan 2009 21:06:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2009 21:06:46 +0000 (UTC) Cc: 250@emacsbugs.donarmstrong.com To: "Michael Schierl" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 12 22:07:57 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LMTzx-0008QP-Nu for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jan 2009 22:07:02 +0100 Original-Received: from localhost ([127.0.0.1]:45471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMTyh-0002nU-Gh for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jan 2009 16:05:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMTwb-0000Jy-9P for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 16:03:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMTwY-0000Du-CM for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 16:03:32 -0500 Original-Received: from [199.232.76.173] (port=40303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMTwX-0000DT-7M for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 16:03:29 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41297) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LMTwV-0006IB-Vp for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2009 16:03:28 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CL3PxW011188; Mon, 12 Jan 2009 13:03:26 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0CKj4ia006470; Mon, 12 Jan 2009 12:45:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Mon, 12 Jan 2009 20:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 250 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 250-submit@emacsbugs.donarmstrong.com id=B250.12317926765064 (code B ref 250); Mon, 12 Jan 2009 20:45:04 +0000 Original-Received: (at 250) by emacsbugs.donarmstrong.com; 12 Jan 2009 20:37:56 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CKbqiq005054 for <250@emacsbugs.donarmstrong.com>; Mon, 12 Jan 2009 12:37:54 -0800 Original-Received: by ewy14 with SMTP id 14so14462028ewy.1 for <250@emacsbugs.donarmstrong.com>; Mon, 12 Jan 2009 12:37:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=AtjE8skvBGO/3GvmDjakItDkmEM/E2BUaAbHjljLf+E=; b=kF7gj0EwYmNXh8yS4RaLFAcaL3FGFBLWgcwvGNVD1rHApxuB0mkZN60WSs6SAKJ9U0 /hITraJoXYgsjSYfjMyRKrvn2L7KTkFhGBnchf1KaTIXJA+Ce447a10H0m/tGdyQITxx Jl2PSximTgD3kyEgrrObW4RICOh5/b8vT3W6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=JtXWxOMkli43jVRg/8JzU3Tkf3tH9s5f5GFsGd1M3mfXsMc1XNddHABcVPQg7KOq9o Hx/AeauZtVEcxIa/jjw4uffyWCOGcOZ+43s1dTse5U4W3B9s3FgaYZgGLZS96YYJ0N/P MY0ttZ29iJDciSQcmnB+TBNJtY8cmgnmK6AY8= Original-Received: by 10.210.90.20 with SMTP id n20mr4152467ebb.198.1231792667133; Mon, 12 Jan 2009 12:37:47 -0800 (PST) Original-Received: by 10.210.141.18 with HTTP; Mon, 12 Jan 2009 12:37:47 -0800 (PST) In-Reply-To: <4672E371.9050908@gmx.de> Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 12 Jan 2009 16:03:32 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24044 Archived-At: On Fri, Jun 15, 2007 at 20:07, Michael Schierl wrote: > - Create a valid .au file in a string (it's easier than .wav): > > (setq mysound (concat ".snd" ; magic number > "\0\0\0\30" ; sound offset 0x18 > "\0\0\0\1" ; sound length 1 byte > "\0\0\0\2" ; encoding 8-bit PCM > "\0\0\37@" ; sampling rate 8kHZ > "\0\0\0\1" ; 1 channel (mono) > "x")) ; some random "sound" > [...] > - Playing it from there does not produce any error, but not sound either > (should produce a short click sound; tested with other players). Does this produce a click sound with other players on Windows? I tested it with Winamp and it didn't. OTOH, if you use a sound of 4 bytes or more, it works (in Emacs, and also Winamp). So it seems like a limitation of Windows (or some underdocumented feature of the .au file format), > On Sat, Jun 16, 2007 at 13:52, Eli Zaretskii wrote: > It wasn't. I added it to PROBLEMS. I've also added a comment to play-sound's docstring. :device is not supported, either. Juanma