Jean-Marc Valin
2004-Aug-06 15:02 UTC
[speex-dev] Re: [speex-dev] Re: [speex-dev] Difference in Encoding of files on Pocket PC vis-à-vis desktop
> Does no-one have any idea here? Grepping the libspeex sources for "char" > produces several references which imply that the code assumes a char is > 8 bits. Jean-Marc: would you say that this is an assumption that the > code makes?Right now, the code *does* assume that a char is 8 bits. However, this assumption is only made in the bit packet (bits.c), so it should be fairly easy to make it work for a platform where a char is 16 bits. Still regarding fixed-point, right now, spx_word_16 is defined as "short" and spx_word_32 is defined as "int", but that's only in arch.h and eventually, it should be replaced by something a bit better. Jean-Marc -- Jean-Marc Valin http://www.xiph.org/~jm/ LABORIUS Université de Sherbrooke, Québec, Canada -------------- 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/20040527/f675ed8a/signature-0001.pgp
Gervase Markham
2004-Aug-06 15:02 UTC
[speex-dev] Re: [speex-dev] Difference in Encoding of files on Pocket PC vis-à-vis desktop
Jean-Marc Valin wrote:> I suspect something related to endianness or word size here.On a related point, has anyone ever compiled FIXED_POINT Speex on a system with 16-bit chars? Will it definitely work, definitely not work, or might it work and no-one has any idea? :-) More specifically, I'm trying to decode Speex data encoded using sampleenc. So, it's definitely been encoded correctly. Normal (floating point) Speex compiles and decodes that data fine on the platform. Gerv --- >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.
Gervase Markham
2004-Aug-06 15:02 UTC
[speex-dev] Re: [speex-dev] Re: [speex-dev] Difference in Encoding of files on Pocket PC vis-à-vis desktop
Gervase Markham wrote:> On a related point, has anyone ever compiled FIXED_POINT Speex on a > system with 16-bit chars? Will it definitely work, definitely not work, > or might it work and no-one has any idea? :-)Does no-one have any idea here? Grepping the libspeex sources for "char" produces several references which imply that the code assumes a char is 8 bits. Jean-Marc: would you say that this is an assumption that the code makes? Gerv --- >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.