esound for PPC

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Mon Oct 4 16:27:13 EST 1999


On Sun, 3 Oct 1999, Elliot Lee wrote:
> On Sun, 3 Oct 1999, Tom Rini wrote:
> > > 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...
> 
> > 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 at 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/





More information about the Linuxppc-dev mailing list