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

Re: Alsa plays only wav files



On Die, 2002-09-17 at 01:56, Toby Sargeant wrote:
> 
> Basically, on i2c based macs (Tumbler, Snapper, DACA) the only format
> supported natively is 16 bit signed big endian. On older macs (AWACS,
> Snapper, Burgundy), big and little endian formats are supported.
> 
> Then sample conversion is done in software if the format doesn't match.
> This doesn't include byte swapping, which means that stuff like audacity
> is left out in the cold.

Well, it seems to have worse problems - even after changing AFMT_S16_LE
to AFMT_S16_NE and O_RDWR to O_WRONLY, it doesn't want to play sound.

> It's possible that alsa assumes that you can do byteswapping on all
> macs, and so any apps that use little endian sample formats instead of
> just sticking with platform native will have probs.

In my experience it's really the other way around, i.e. ALSA swaps bytes
in software, which sometimes hurts.


-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast



Reply to: