Kaveh Goudarzi
2004-Aug-06 15:01 UTC
[speex-dev] Decoding .spx with 1.0 on ppc produces noise!
> > Well, wav's are considered little endian but for raw files, there's a > command-like switch to specify either little-endian or big-endian (--le > and --be).so if somone is streaming a speex encoded file to me, how do I work out if its a bigendian or a little endia stream before I begin decoding ... Is there something in the speex header? ( I couldn't see it) or would this be communicated to the decoder end in say the Ogg header used to wrap speex in? My apologies if these are obvious questions. kind regards, Kaveh. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Jean-Marc Valin
2004-Aug-06 15:01 UTC
[speex-dev] Decoding .spx with 1.0 on ppc produces noise!
> I had a similar question ... is the endian-ness of the encoded > speex file, system dependent? or is it always little endian? If it's > always little endian (like the header seems to be) then big endian > machines (or java) will need to map everything to bigendian before > decoding ...Well, wav's are considered little endian but for raw files, there's a command-like switch to specify either little-endian or big-endian (--le and --be). Jean-Marc -- Jean-Marc Valin, M.Sc.A. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada <p> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20030416/79966762/signature-0001.pgp
Jean-Marc Valin
2004-Aug-06 15:01 UTC
[speex-dev] Decoding .spx with 1.0 on ppc produces noise!
> > Well, wav's are considered little endian but for raw files, there's a > > command-like switch to specify either little-endian or big-endian (--le > > and --be). > > so if somone is streaming a speex encoded file to me, how > do I work out if its a bigendian or a little endia stream before > I begin decoding ... Is there something in the speex header? ( I > couldn't see it) or would this be communicated to the decoder end > in say the Ogg header used to wrap speex in?No, the --be and --le are encoder switches that apply when the encoder input is raw PCM. A Speex file is "endian independent" and should decode on all platforms. In this case there's a problem with decoding on PPC which is probably a bug in speexdec. Jean-Marc -- Jean-Marc Valin, M.Sc.A. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada <p> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20030416/f223ad0a/signature-0001.pgp