Lines Matching refs:old_pos
78 DWORD old_pos;
578 DWORD wpos, ppos, old_pos;
608 old_pos = wpos;
609 old_pos +=
611 old_pos %= bufsize;
612 old_pos &= ~hw->info.align;
615 old_pos = wpos;
623 if (ds->old_pos == ppos) {
625 dolog ("old_pos == ppos\n");
631 ds->played += audio_ring_dist (ds->old_pos, ppos, hw->bufsize);
633 old_pos = ds->old_pos;
636 if ((old_pos < ppos) && ((old_pos + len) > ppos)) {
637 len = ppos - old_pos;
640 if ((old_pos > ppos) && ((old_pos + len) > (ppos + bufsize))) {
641 old_pos + ppos;
646 dolog ("len=%d bufsize=%d old_pos=%ld ppos=%ld\n",
647 len, bufsize, old_pos, ppos);
662 old_pos,
685 ds->old_pos = (old_pos + (decr << hwshift)) % bufsize;