Lines Matching full:samples
378 * snd_pcm_format_size - return the byte size of samples on the given format
380 * @samples: sampling rate
382 * Return: The byte size of the given samples for the format, or a
385 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples) in snd_pcm_format_size() argument
390 return samples * phys_width / 8; in snd_pcm_format_size()
414 * @samples: the number of samples to set silence
416 * Sets the silence data on the buffer for the given samples.
420 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples) in snd_pcm_format_set_silence() argument
428 if (samples == 0) in snd_pcm_format_set_silence()
436 unsigned int bytes = samples * width / 8; in snd_pcm_format_set_silence()
440 /* non-zero samples, fill using a loop */ in snd_pcm_format_set_silence()
444 while (samples--) { in snd_pcm_format_set_silence()
452 while (samples--) { in snd_pcm_format_set_silence()
458 while (samples--) { in snd_pcm_format_set_silence()
464 while (samples--) { in snd_pcm_format_set_silence()
470 while (samples--) { in snd_pcm_format_set_silence()