Re: ov_read error on macosx
Juan Miguel Martín Muñoz <[email protected]> Fri, 15 Jul 2011 14:35:42 +0200
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CADN8KfQzFja-jH3w305sXV0DSsdtzWwUufjzGEKubYnqak7xZg@mail.gmail.com> |
Hi Christian! thank for the reply. I have tried with "0" too and I got the same result :( 2011/7/15 Christian Lins <[email protected]> > Hello there! > > Am 15.07.2011 13:48, schrieb Juan Miguel Martín Muñoz: > > #ifdef WIN32 > > lDecodeSize = ov_read(psOggVorbisFile, pDecodeBuffer + ulBytesDone, > > ulBufferSize - ulBytesDone, 0, 2, 1, ¤t_section); > > #elif MACOSX // El cuarto parametro es lo del big endian de los cojones > > lDecodeSize = ov_read(psOggVorbisFile, pDecodeBuffer + ulBytesDone, > > ulBufferSize - ulBytesDone, 1, 2, 1, ¤t_section); > > #endif > > > > > This works fine on Windows, but on MacOSX, after ov_read call, > > pDecodeBuffer is full of 128, -128, 0... I mean, non sense data. > > > > Any idea??? > > Modern Macs use Intel x86 hardware, so therefor they use little endian > byte ordering as well (afaik). Have you tried > > ov_read(psOggVorbisFile, pDecodeBuffer + ulBytesDone, > ulBufferSize - ulBytesDone, 0, 2, 1, ¤t_section); > > on MacOSX? > > Regards > Christian > _______________________________________________ > Vorbis-dev mailing list > [email protected] > http://lists.xiph.org/mailman/listinfo/vorbis-dev > _______________________________________________ Vorbis-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/vorbis-dev