From googling around, it seems that the ogg bitpacker has defined endianness, but I can't find anywhere that says which order it's in. Any help? The endianness of the 24 bit field in the OggPCM header should be specified. I was going to edit the wiki to specify it as network byte order, then realized that you may have standardized on something else in theora/vorbis already.
On 11/9/05, John Koleszar <jkoleszar@on2.com> wrote:> From googling around, it seems that the ogg bitpacker has defined > endianness, but I can't find anywhere that says which order it's in. Any > help?libogg has two bitpackers; a little endian one and a bigendian one. Use the one you want to use. Mike
Michael Smith wrote:> libogg has two bitpackers; a little endian one and a bigendian one.ok, I didn't see it in the docs at http://www.xiph.org/ogg/doc/libogg/reference.html and didn't look in the header file first. My bad. Is it correct to state that the oggpack_* functions use little endian order, and the oggpackB_* functions use big endian order? Is it safe to mix calls to the two different bitpackers on the same oggpack_buffer?