Lines Matching defs:samples
364 * snd_pcm_format_size - return the byte size of samples on the given format
366 * @samples: sampling rate
368 * Return: The byte size of the given samples for the format, or a
371 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples)
376 return samples * phys_width / 8;
400 * @samples: the number of samples to set silence
402 * Sets the silence data on the buffer for the given samples.
406 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples)
414 if (samples == 0)
422 unsigned int bytes = samples * width / 8;
426 /* non-zero samples, fill using a loop */
430 while (samples--) {
438 while (samples--) {
444 while (samples--) {
450 while (samples--) {
456 while (samples--) {