Lines Matching defs:samples
121 snd_pcm_uframes_t samples;
271 dolog ("obtained: samples %ld\n", obt->samples);
635 obt->samples = obt_buffer_size;
706 int samples;
723 samples = decr;
725 while (samples) {
726 int left_till_end_samples = hw->samples - rpos;
727 int len = audio_MIN (samples, left_till_end_samples);
783 rpos = (rpos + written) % hw->samples;
784 samples -= written;
842 hw->samples = obt.samples;
844 alsa->pcm_buf = audio_calloc (AUDIO_FUNC, obt.samples, 1 << hw->info.shift);
846 dolog ("Could not allocate DAC buffer (%d samples, each %d bytes)\n",
847 hw->samples, 1 << hw->info.shift);
928 hw->samples = obt.samples;
930 alsa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift);
932 dolog ("Could not allocate ADC buffer (%d samples, each %d bytes)\n",
933 hw->samples, 1 << hw->info.shift);
960 int dead = hw->samples - live;
990 avail = hw->samples;
1019 if (hw->wpos + decr > hw->samples) {
1020 bufs[0].len = (hw->samples - hw->wpos);
1021 bufs[1].len = (decr - (hw->samples - hw->wpos));
1084 hw->wpos = (hw->wpos + read_samples) % hw->samples;