Home | History | Annotate | Download | only in audio

Lines Matching refs:samples

395         int samples_till_end = hw->samples - oss->wpos;
417 oss->wpos = (oss->wpos + samples_written) % hw->samples;
432 bufsize = hw->samples << hw->info.shift;
494 err = munmap (oss->pcm_buf, hw->samples << hw->info.shift);
497 oss->pcm_buf, hw->samples << hw->info.shift);
549 hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift;
555 hw->samples << hw->info.shift,
563 hw->samples << hw->info.shift);
585 err = munmap (oss->pcm_buf, hw->samples << hw->info.shift);
588 oss->pcm_buf, hw->samples << hw->info.shift);
597 hw->samples,
602 "Could not allocate DAC buffer (%d samples, each %d bytes)\n",
603 hw->samples,
640 audio_pcm_info_clear_buf (&hw->info, oss->pcm_buf, hw->samples);
714 hw->samples = (obt.nfrags * obt.fragsize) >> hw->info.shift;
715 oss->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift);
717 dolog ("Could not allocate ADC buffer (%d samples, each %d bytes)\n",
718 hw->samples, 1 << hw->info.shift);
745 int dead = hw->samples - live;
759 if (hw->wpos + dead > hw->samples) {
760 bufs[0].len = (hw->samples - hw->wpos) << hwshift;
761 bufs[1].len = (dead - (hw->samples - hw->wpos)) << hwshift;
805 hw->wpos = (hw->wpos + read_samples) % hw->samples;