emacs-devel
[Top][All Lists]
Advanced

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

Re: How to play sound from string correctly?


From: Eli Zaretskii
Subject: Re: How to play sound from string correctly?
Date: Sat, 05 Jan 2002 10:13:09 +0200

> From: address@hidden (Pavel =?iso-8859-2?q?Jan=EDk?=)
> Date: Fri, 04 Jan 2002 23:14:08 +0100
> 
>           (save-excursion
>             (set-buffer bufval)
>             (erase-buffer)
>             (set-buffer-multibyte nil)
>             (insert-file-contents-literally value)
>             (delete-file value)
>             (setq value (buffer-string)))
> 
> First question: Is this correct way to read the contents of the binary
> file?

Yes, I think so.

> I can not play that data with
> 
>      (play-sound (list 'sound :data value))
> 
> it will result in Invalid sound specification. Why?

Could be a bug in sound.c, for example.  I suggest to step with a
debugger into the sound-play function used for your audio device, and
see what's going on there.



reply via email to

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