Lines Matching refs:granulepos
608 vb->granulepos=v->granulepos;
670 v->granulepos+=movementW-(v->centerW-v->eofflag);
672 v->granulepos+=movementW;
675 v->granulepos+=movementW;
699 v->granulepos=-1;
736 v->granulepos=-1; /* out of sequence; lose count */
839 return will be past the vb->granulepos.
853 if(v->granulepos==-1){
854 if(vb->granulepos!=-1){ /* only set if we have a position to set to */
856 v->granulepos=vb->granulepos;
859 if(b->sample_count>v->granulepos){
864 /* no preceeding granulepos; assume we started at zero (we'd
866 /* granulepos could be -1 due to a seek, but that would result
869 v->pcm_current-=(b->sample_count-v->granulepos)>>hs;
872 v->pcm_returned+=(b->sample_count-v->granulepos)>>hs;
881 v->granulepos+=ci->blocksizes[v->lW]/4+ci->blocksizes[v->W]/4;
882 if(vb->granulepos!=-1 && v->granulepos!=vb->granulepos){
884 if(v->granulepos>vb->granulepos){
885 long extra=v->granulepos-vb->granulepos;
895 v->granulepos=vb->granulepos;