Lines Matching defs:samples
81 int samples;
98 if (abs (hw->samples - live) < 64)
103 samples = oss->default_bufsize >> hw->info.shift;
105 decr = audio_MIN (samples, live);
107 Log(("winmm_run_out: current pos %08X room left=%08X, decr=%08x\n", mmtime.u.sample, samples, decr));
109 samples = decr;
111 while (samples)
114 int left_till_end_samples = hw->samples - rpos;
115 int convert_samples = audio_MIN (samples, left_till_end_samples);
146 rpos = (rpos + convert_samples) % hw->samples;
147 samples -= convert_samples;
336 pcm_info_clear (&hw->info, oss->pcm_buf, hw->samples);
425 int dead = hw->samples - live;
441 if (hw->wpos + dead > hw->samples) {
442 bufs[0].len = (hw->samples - hw->wpos) << hwshift;
443 bufs[1].len = (dead - (hw->samples - hw->wpos)) << hwshift;
482 hw->wpos = (hw->wpos + read_samples) % hw->samples;