# HG changeset patch # User Chris Cannam # Date 1268395479 0 # Node ID 268c5431936d945ea1b49efec8e1cd60d29dd3b0 # Parent b1dc68507e463e65a9dcd6024a83880eb9130279 * Update for oggz 1.1.0 API diff -r b1dc68507e46 -r 268c5431936d data/fileio/OggVorbisFileReader.cpp --- a/data/fileio/OggVorbisFileReader.cpp Thu Oct 22 15:54:21 2009 +0000 +++ b/data/fileio/OggVorbisFileReader.cpp Fri Mar 12 12:04:39 2010 +0000 @@ -138,15 +138,15 @@ } int -OggVorbisFileReader::readPacket(OGGZ *, ogg_packet *packet, long, void *data) +OggVorbisFileReader::readPacket(OGGZ *, oggz_packet *packet, long, void *data) { OggVorbisFileReader *reader = (OggVorbisFileReader *)data; FishSound *fs = reader->m_fishSound; - fish_sound_prepare_truncation(fs, packet->granulepos, packet->e_o_s); - fish_sound_decode(fs, packet->packet, packet->bytes); + fish_sound_prepare_truncation(fs, packet->op.granulepos, packet->op.e_o_s); + fish_sound_decode(fs, packet->op.packet, packet->op.bytes); - reader->m_bytesRead += packet->bytes; + reader->m_bytesRead += packet->op.bytes; // The number of bytes read by this function is smaller than // the file size because of the packet headers diff -r b1dc68507e46 -r 268c5431936d data/fileio/OggVorbisFileReader.h --- a/data/fileio/OggVorbisFileReader.h Thu Oct 22 15:54:21 2009 +0000 +++ b/data/fileio/OggVorbisFileReader.h Fri Mar 12 12:04:39 2010 +0000 @@ -82,7 +82,7 @@ bool m_cancelled; int m_completion; - static int readPacket(OGGZ *, ogg_packet *, long, void *); + static int readPacket(OGGZ *, oggz_packet *, long, void *); static int acceptFrames(FishSound *, float **, long, void *); class DecodeThread : public Thread