Lines Matching defs:samples
335 * snd_pcm_format_size - return the byte size of samples on the given format
337 * @samples: sampling rate
339 * Returns the byte size of the given samples for the format, or a
342 ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples)
347 return samples * phys_width / 8;
373 * @samples: the number of samples to set silence
375 * Sets the silence data on the buffer for the given samples.
379 int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int samples)
386 if (samples == 0)
394 unsigned int bytes = samples * width / 8;
398 /* non-zero samples, fill using a loop */
404 while (samples--) {
410 while (samples--) {
416 while (samples--) {
422 while (samples--) {