Thread (17 messages) 17 messages, 5 authors, 1999-11-02

Re: esound for PPC

From: Geert Uytterhoeven <hidden>
Date: 1999-10-04 06:27:13

On Sun, 3 Oct 1999, Elliot Lee wrote:
On Sun, 3 Oct 1999, Tom Rini wrote:
quoted
quoted
It appears you're right. All the sounds that have trouble playing are 16bit
44kHz wavs. The weird thing is that if I start esd and use esdplay, all the
sounds play properly. However the 16bit sounds don't appear to be going
through esd because I don't get my prompt back until the sound is done
playing, while the 8bit sounds are played asynchronously.
This may just be because the 16bit sound files are bigger...
quoted
What happens is either audiofile or esound is doing byte swapping it
doesn't need to.
I think I heard somewhere that the PPC /dev/dsp uses little endian format,
while Sparc uses its native (big) endianness.

If someone could give me a table of what endianness the sound devices on
various platforms expect, I could make an esound-0.2.15 that fixes it
(after having you all test it :).
There are different sound format codes for little and big endian 16 bit sound.
Look at the sound headers.

Greetings,

						Geert

--
Geert Uytterhoeven ----------------- Sony Suprastructure Center Europe (SUPC-E)
Geert.Uytterhoeven@sonycom.com ------------------- Sint Stevens Woluwestraat 55
Phone +32-2-7248632 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help