Mercurial > hg > svcore
diff data/fileio/OggVorbisFileReader.cpp @ 619:268c5431936d
* Update for oggz 1.1.0 API
author | Chris Cannam |
---|---|
date | Fri, 12 Mar 2010 12:04:39 +0000 |
parents | dfc4dd561bb6 |
children | 3e139b2dfe5e |
line wrap: on
line diff
--- 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