unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Sound
@ 2005-02-16  9:56 Gijs
  2005-02-16 20:52 ` Sound Eli Zaretskii
  2005-02-17 10:20 ` sound Gijs
  0 siblings, 2 replies; 4+ messages in thread
From: Gijs @ 2005-02-16  9:56 UTC (permalink / raw)



Hello! 

This Emacs runs on an i810 (audio etcetera) chipset. This (Debian)
Emacs 21.3 refuses to play a 'wav' file. Stubborn!?

play-sound-file file.wav gives 'Could not set sound format'


But (for example) 
Welcome to the Emacs shell
~ $ play file.wav

works

Why!? Does Emacs handle sound by its own, bypassing the OS?

Thanks

Gijs

-- 
Cat, n.:
	Lapwarmer with built-in buzzer.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sound
  2005-02-16  9:56 Sound Gijs
@ 2005-02-16 20:52 ` Eli Zaretskii
  2005-02-17 10:20 ` sound Gijs
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2005-02-16 20:52 UTC (permalink / raw)


> From: Gijs <gijs@afake-address.tv>
> Date: Wed, 16 Feb 2005 10:56:20 +0100
> 
> But (for example) 
> Welcome to the Emacs shell
> ~ $ play file.wav
> 
> works
> 
> Why!? Does Emacs handle sound by its own, bypassing the OS?

I don't know what you meant by ``bypassing the OS''.  Emacs uses the
OS interface to the sound device (ioctl, write, etc. system calls),
but if you were asking whether it calls the `play' utility internally,
then no, it doesn't.  However, the system calls Emacs issues to play
the sound are supposed to be the equivalent of what `play' does.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sound
  2005-02-16  9:56 Sound Gijs
  2005-02-16 20:52 ` Sound Eli Zaretskii
@ 2005-02-17 10:20 ` Gijs
  2005-02-18 16:53   ` sound Eli Zaretskii
  1 sibling, 1 reply; 4+ messages in thread
From: Gijs @ 2005-02-17 10:20 UTC (permalink / raw)


Eli Zaretskii writes:

 >> From: Gijs <gijs@afake-address.tv>
 >> Date: Wed, 16 Feb 2005 10:56:20 +0100
 >> 
 >> But (for example) 
 >> Welcome to the Emacs shell
 >> ~ $ play file.wav
 >> 
 >> works
 >> 
 >> Why!? Does Emacs handle sound by its own, bypassing the OS?

>I don't know what you meant by ``bypassing the OS''.  Emacs uses the
>OS interface to the sound device (ioctl, write, etc. system calls),
>but if you were asking whether it calls the `play' utility internally,
>then no, it doesn't.  However, the system calls Emacs issues to play
>the sound are supposed to be the equivalent of what `play' does.

Thanks Eli,

Rephrasing the question, any idea of why this (Debian) emacs won't
play this sound file? 


Regards

Gijs

-- 
Why don't you ever enter any CONTESTS, Marvin??  Don't you know your
own ZIPCODE?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sound
  2005-02-17 10:20 ` sound Gijs
@ 2005-02-18 16:53   ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2005-02-18 16:53 UTC (permalink / raw)


> From: Gijs <gijs@dontwatch.tv>
> Date: Thu, 17 Feb 2005 11:20:32 +0100
> 
> Rephrasing the question, any idea of why this (Debian) emacs won't
> play this sound file? 

No idea here.  Perhaps you could use the strace utility to find out
what system calls are issued by `play' and by Emacs, and what is the
difference between them.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-18 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16  9:56 Sound Gijs
2005-02-16 20:52 ` Sound Eli Zaretskii
2005-02-17 10:20 ` sound Gijs
2005-02-18 16:53   ` sound Eli Zaretskii

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).