Lines Matching refs:samples
382 * snd_pcm_format_size - return the byte size of samples on the given format
384 * @samples: sampling rate
386 * Return: The byte size of the given samples for the format, or a
389 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples)
394 return samples * phys_width / 8;
418 * @samples: the number of samples to set silence
420 * Sets the silence data on the buffer for the given samples.
424 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples)
432 if (samples == 0)
440 unsigned int bytes = samples * width / 8;
444 /* non-zero samples, fill using a loop */
448 while (samples--) {
456 while (samples--) {
462 while (samples--) {
468 while (samples--) {
474 while (samples--) {