alsa_sys

Type Alias snd_pcm_hw_params_t

Source
pub type snd_pcm_hw_params_t = _snd_pcm_hw_params;
Expand description

PCM hardware configuration space container

snd_pcm_hw_params_t is an opaque structure which contains a set of possible PCM hardware configurations. For example, a given instance might include a range of buffer sizes, a range of period sizes, and a set of several sample formats. Some subset of all possible combinations these sets may be valid, but not necessarily any combination will be valid.

When a parameter is set or restricted using a snd_pcm_hw_params_set* function, all of the other ranges will be updated to exclude as many impossible configurations as possible. Attempting to set a parameter outside of its acceptable range will result in the function failing and an error code being returned.

Aliased Type§

struct snd_pcm_hw_params_t { /* private fields */ }

Trait Implementations

Source§

impl Clone for _snd_pcm_hw_params

Source§

fn clone(&self) -> _snd_pcm_hw_params

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _snd_pcm_hw_params

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for _snd_pcm_hw_params