bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: play-sound causes "Invalid sound specification" on valid :data (on W


From: Eli Zaretskii
Subject: Re: play-sound causes "Invalid sound specification" on valid :data (on Windows)
Date: Sat, 16 Jun 2007 13:28:12 +0300

> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]