I know this is probably blindingly obvious, but I can't find it anywhere. Is there a way to tell the Vorbis codec what endian your samples are or do I have to do my own byte reversal. AIFF is Be's 'standard' audio file format, and its encoded big endian, not little endian even on Intel boxes. I know for decoding ov_read has an endian option, but I can't see an equaivalent for encoding. Talking of AIFF format, as anyone found a guide to the header, I'n just skipping it at the moment, I'd rather do some checking. Dave, who hope he got his endians the right way around. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/
> I know for decoding ov_read has an endian option, > but I can't see an equaivalent for encoding.There's no vorbisfile interface for encoding, and the libvorbis interface expects the data to be written into an exposed buffer as host-native doubles. Monty --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/
Try this. Not sure if it will help. http://developer.apple.com/technotes/tn/tn1081.html All info on the AIFF format can be found at Apple's Site. At approximately 5:18 PM +0200 on the day Earth people call 6/25/00, David Burnett said something about [vorbis-dev] Encoding the wrong Endian and AIFF:>?I know this is probably blindingly obvious, but >I can't find it anywhere. Is there a way to tell the >Vorbis codec what endian your samples are or do I >have to do my own byte reversal. > >AIFF is Be's 'standard' audio file format, and its encoded >big endian, not little endian even on Intel boxes. > >I know for decoding ov_read has an endian option, >but I can't see an equaivalent for encoding. > >Talking of AIFF format, as anyone found a guide >to the header, I'n just skipping it at the >moment, I'd rather do some checking. > >Dave, who hope he got his endians the right way around.--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/