Lines Matching refs:link

723               int link=(vf->seekable?vf->current_link:0);  in _fetch_and_process_packet()  local
739 if(vf->seekable && link>0) in _fetch_and_process_packet()
740 granulepos-=vf->pcmlengths[link*2]; in _fetch_and_process_packet()
749 for(i=0;i<link;i++) in _fetch_and_process_packet()
822 int link; in _fetch_and_process_packet() local
832 for(link=0;link<vf->links;link++) in _fetch_and_process_packet()
833 if(vf->serialnos[link]==serialno)break; in _fetch_and_process_packet()
835 if(link==vf->links) continue; /* not the desired Vorbis in _fetch_and_process_packet()
840 vf->current_link=link; in _fetch_and_process_packet()
853 link=0; in _fetch_and_process_packet()
1134 int link=(vf->seekable?vf->current_link:0); in ov_bitrate_instant() local
1138 ret=vf->bittrack/vf->samptrack*vf->vi[link].rate+.5; in ov_bitrate_instant()
1299 int i,link=vf->current_link; in ov_raw_seek() local
1300 ogg_int64_t granulepos=op.granulepos-vf->pcmlengths[link*2]; in ov_raw_seek()
1303 for(i=0;i<link;i++) in ov_raw_seek()
1345 int link; in ov_raw_seek() local
1348 for(link=0;link<vf->links;link++) in ov_raw_seek()
1349 if(vf->serialnos[link]==serialno)break; in ov_raw_seek()
1351 if(link==vf->links) continue; /* not the desired Vorbis in ov_raw_seek()
1354 vf->current_link=link; in ov_raw_seek()
1359 firstflag=(pagepos<=vf->dataoffsets[link]); in ov_raw_seek()
1389 int link=-1; in ov_pcm_seek_page() local
1399 for(link=vf->links-1;link>=0;link--){ in ov_pcm_seek_page()
1400 total-=vf->pcmlengths[link*2+1]; in ov_pcm_seek_page()
1412 ogg_int64_t end=vf->offsets[link+1]; in ov_pcm_seek_page()
1413 ogg_int64_t begin=vf->offsets[link]; in ov_pcm_seek_page()
1414 ogg_int64_t begintime = vf->pcmlengths[link*2]; in ov_pcm_seek_page()
1415 ogg_int64_t endtime = vf->pcmlengths[link*2+1]+begintime; in ov_pcm_seek_page()
1453 if(ogg_page_serialno(&og)!=vf->serialnos[link]) in ov_pcm_seek_page()
1500 if(link!=vf->current_link){ in ov_pcm_seek_page()
1504 vf->current_link=link; in ov_pcm_seek_page()
1505 vf->current_serialno=vf->serialnos[link]; in ov_pcm_seek_page()
1627 int link; in ov_pcm_seek() local
1629 for(link=0;link<vf->links;link++) in ov_pcm_seek()
1630 if(vf->serialnos[link]==serialno)break; in ov_pcm_seek()
1631 if(link==vf->links) continue; in ov_pcm_seek()
1632 vf->current_link=link; in ov_pcm_seek()
1670 int link=-1; in ov_time_seek() local
1679 for(link=0;link<vf->links;link++){ in ov_time_seek()
1680 double addsec = ov_time_total(vf,link); in ov_time_seek()
1683 pcm_total+=vf->pcmlengths[link*2+1]; in ov_time_seek()
1686 if(link==vf->links)return(OV_EINVAL); in ov_time_seek()
1690 ogg_int64_t target=pcm_total+(seconds-time_total)*vf->vi[link].rate; in ov_time_seek()
1700 int link=-1; in ov_time_seek_page() local
1709 for(link=0;link<vf->links;link++){ in ov_time_seek_page()
1710 double addsec = ov_time_total(vf,link); in ov_time_seek_page()
1713 pcm_total+=vf->pcmlengths[link*2+1]; in ov_time_seek_page()
1716 if(link==vf->links)return(OV_EINVAL); in ov_time_seek_page()
1720 ogg_int64_t target=pcm_total+(seconds-time_total)*vf->vi[link].rate; in ov_time_seek_page()
1740 int link=0; in ov_time_tell() local
1750 for(link=vf->links-1;link>=0;link--){ in ov_time_tell()
1751 pcm_total-=vf->pcmlengths[link*2+1]; in ov_time_tell()
1752 time_total-=ov_time_total(vf,link); in ov_time_tell()
1757 return((double)time_total+(double)(vf->pcm_offset-pcm_total)/vf->vi[link].rate); in ov_time_tell()
1768 vorbis_info *ov_info(OggVorbis_File *vf,int link){ in ov_info() argument
1770 if(link<0) in ov_info()
1776 if(link>=vf->links) in ov_info()
1779 return vf->vi+link; in ov_info()
1786 vorbis_comment *ov_comment(OggVorbis_File *vf,int link){ in ov_comment() argument
1788 if(link<0) in ov_comment()
1794 if(link>=vf->links) in ov_comment()
1797 return vf->vc+link; in ov_comment()