int read_packet (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data) { FishSound * fsound = (FishSound *)user_data; fish_sound_prepare_truncation (fsound, op->granulepos, op->e_o_s); fish_sound_decode (fsound, op->packet, op->bytes); return 0; }
static int read_packet (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data) { FS_DecEnc * ed = (FS_DecEnc *) user_data; fish_sound_prepare_truncation (ed->decoder, op->granulepos, op->e_o_s); fish_sound_decode (ed->decoder, op->packet, op->bytes); return 0; }
int acceptPacket(ogg_packet *p) { fish_sound_prepare_truncation(m_fishSound, p->granulepos, p->e_o_s); fish_sound_decode(m_fishSound, p->packet, p->bytes); return 0; }