Lines Matching refs:samples
170 snd_pcm_uframes_t samples;
497 dolog ("obtained: samples %ld\n", obt->samples);
738 obt->samples = obt_buffer_size;
787 int left_till_end_samples = hw->samples - alsa->wpos;
838 alsa->wpos = (alsa->wpos + written) % hw->samples;
910 hw->samples = obt.samples;
912 alsa->pcm_buf = audio_calloc (AUDIO_FUNC, obt.samples, 1 << hw->info.shift);
914 dolog ("Could not allocate DAC buffer (%d samples, each %d bytes)\n",
915 hw->samples, 1 << hw->info.shift);
1015 hw->samples = obt.samples;
1017 alsa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift);
1019 dolog ("Could not allocate ADC buffer (%d samples, each %d bytes)\n",
1020 hw->samples, 1 << hw->info.shift);
1053 int dead = hw->samples - live;
1081 avail = hw->samples;
1106 if (hw->wpos + decr > hw->samples) {
1107 bufs[0].len = (hw->samples - hw->wpos);
1108 bufs[1].len = (decr - (hw->samples - hw->wpos));
1171 hw->wpos = (hw->wpos + read_samples) % hw->samples;