unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Schierl <schierlm@gmx.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: play-sound causes "Invalid sound specification" on valid :data (on Windows)
Date: Sat, 16 Jun 2007 13:28:12 +0300	[thread overview]
Message-ID: <u645oi477.fsf@gnu.org> (raw)
In-Reply-To: <4672E371.9050908@gmx.de> (message from Michael Schierl on Fri, 15 Jun 2007 21:07:29 +0200)

> Date: Fri, 15 Jun 2007 21:07:29 +0200
> From: Michael Schierl <schierlm@gmx.de>
> 
> - 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.

  reply	other threads:[~2007-06-16 10:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f7ccd24b0901140814n28aee82mb89d0f3d48c9c5@mail.gmail.com>
2007-06-15 19:07 ` play-sound causes "Invalid sound specification" on valid :data (on Windows) Michael Schierl
2007-06-16 10:28   ` Eli Zaretskii [this message]
2007-06-16 11:38     ` Michael Schierl
2007-06-16 12:52       ` Eli Zaretskii
2009-01-12 20:37   ` bug#250: " Juanma Barranquero
2009-01-14 16:20   ` bug#250: marked as done (play-sound causes "Invalid sound specification" on valid :data (on Windows)) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u645oi477.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=schierlm@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).