int eof=0; FILE *in = fopen("data/sound/file.ogg","rb"); char pcmout[4096]; int current_section; if(ov_open_callbacks(in,&vf,NULL,0,OV_CALLBACKS_NOCLOSE) < 0) { throw "Error while opening file." exit(1); } vorbis_info *vi=ov_info(&vf,-1); while(!eof){ long ret=...