[Tremor] Byte order problem

Monty xiphmont at xiph.org
Wed Sep 22 07:33:45 PDT 2004




On Thu, Sep 23, 2004 at 08:55:54AM +0200, Niklas Barsk wrote:
> > > > > Does anyone know why this happens and how I can solve it?
> > 
> > You decode wass correct.  It's what you're doing with the data
> > afterward that's likely erroneous.
> 
> That explains a lot. Since I cannot play sound files on the Unix I am
> working on I sent the decoded wav file to a PC and tried to play it
> there.
> 
> Does this mean that all wav files created on a big endian machine is
> unplayable on a little endian machine and vice versa?

WAV is always little endian, but it's not your only choice of audio
container for PCM data.  AIFF-C may be either endian.  Google should
help you here.

Monty


More information about the Tremor mailing list