Lines Matching refs:ov
28 void _verify(OggVorbis_File *ov,
39 if(val!=-1 && ov_raw_tell(ov)<val){
41 (long)val,(long)ov_raw_tell(ov));
44 if(pcmval!=-1 && ov_pcm_tell(ov)>pcmval){
46 (long)pcmval,(long)ov_pcm_tell(ov));
49 if(timeval!=-1 && ov_time_tell(ov)>timeval){
51 timeval,ov_time_tell(ov));
54 pos=ov_pcm_tell(ov);
59 bread=ov_read(ov,buffer,4096,1,1,1,&dummy);
79 OggVorbis_File ov;
92 if(ov_open_callbacks(stdin,&ov,NULL,-1,OV_CALLBACKS_NOCLOSE)<0){
97 if(ov_seekable(&ov)){
102 for(i=0;i<ov.links;i++){
103 vorbis_info *vi=ov_info(&ov,i);
113 pcmlength=ov_pcm_total(&ov,-1);
114 timelength=ov_time_total(&ov,-1);
118 int ret=ov_read(&ov,bigassbuffer+i,pcmlength*2-i,1,1,1,&dummy);
133 ogg_int64_t length=ov.end;
140 ret=ov_raw_seek(&ov,val);
146 _verify(&ov,val,-1,-1.,pcmlength,bigassbuffer);
159 ret=ov_pcm_seek_page(&ov,val);
165 _verify(&ov,-1,val,-1.,pcmlength,bigassbuffer);
178 ret=ov_pcm_seek(&ov,val);
183 if(ov_pcm_tell(&ov)!=val){
185 (long)val,(long)ov_pcm_tell(&ov));
189 _verify(&ov,-1,val,-1.,pcmlength,bigassbuffer);
202 ret=ov_time_seek_page(&ov,val);
208 _verify(&ov,-1,-1,val,pcmlength,bigassbuffer);
221 ret=ov_time_seek(&ov,val);
226 if(ov_time_tell(&ov)<val-1 || ov_time_tell(&ov)>val+1){
228 val,ov_time_tell(&ov));
232 _verify(&ov,-1,-1,val,pcmlength,bigassbuffer);
244 ov_clear(&ov);