Lines Matching defs:bufs
763 } bufs[2];
765 bufs[0].add = hw->wpos;
766 bufs[0].len = 0;
767 bufs[1].add = 0;
768 bufs[1].len = 0;
775 bufs[0].len = (hw->samples - hw->wpos) << hwshift;
776 bufs[1].len = (dead - (hw->samples - hw->wpos)) << hwshift;
779 bufs[0].len = dead << hwshift;
786 if (bufs[i].len) {
787 void *p = advance (oss->pcm_buf, bufs[i].add << hwshift);
788 nread = read (oss->fd, p, bufs[i].len);
794 "alignment %d\n", nread, bufs[i].add << hwshift,
799 hw->conv (hw->conv_buf + bufs[i].add, p, nread >> hwshift,
802 hw->conv (hw->conv_buf + bufs[i].add, p, nread >> hwshift,
807 if (bufs[i].len - nread) {
817 bufs[i].len, p