From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: play-sound causes "Invalid sound specification" on valid :data (on Windows) Date: Sat, 16 Jun 2007 13:28:12 +0300 Message-ID: References: <4672E371.9050908@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1181989726 23984 80.91.229.12 (16 Jun 2007 10:28:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 10:28:46 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Michael Schierl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 12:28:44 2007 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 1HzVWO-00088s-1m for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 12:28:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzVWN-0007CJ-AI for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 06:28:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzVWK-0007C4-KX for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 06:28:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzVWJ-0007Bs-8T for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 06:28:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzVWJ-0007Bp-2B for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 06:28:39 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HzVWI-0001Y8-HN for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 06:28:38 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-245-228.inter.net.il [83.130.245.228]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id CVO14092 (AUTH halo1); Sat, 16 Jun 2007 13:28:11 +0300 (IDT) In-reply-to: <4672E371.9050908@gmx.de> (message from Michael Schierl on Fri, 15 Jun 2007 21:07:29 +0200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:15906 Archived-At: > Date: Fri, 15 Jun 2007 21:07:29 +0200 > From: Michael Schierl > > - Load emacs -Q > - 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" > > - check if the string is really unibyte, as it should: > > (multibyte-string-p mysound) > => nil > > - play it > > (play-sound `(sound :data ,mysound)) > => (error "Invalid sound specification") Thank you for your report. This is a known limitation: the Windows port of Emacs currently doesn't support :data for playing sound. You MUST use :file.