mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
modargs: Add pa_modargs_get_sample_rate()
return sample rate from the "rate" module argument Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
22ee1b9d53
commit
832ad693f5
2 changed files with 18 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ int pa_modargs_get_value_double(pa_modargs *ma, const char *key, double *value);
|
|||
/* Return a module argument as pa_volume_t value in *value */
|
||||
int pa_modargs_get_value_volume(pa_modargs *ma, const char *key, pa_volume_t *value);
|
||||
|
||||
/* Return sample rate from the "rate" argument */
|
||||
int pa_modargs_get_sample_rate(pa_modargs *ma, uint32_t *rate);
|
||||
|
||||
/* Return sample spec data from the three arguments "rate", "format" and "channels" */
|
||||
int pa_modargs_get_sample_spec(pa_modargs *ma, pa_sample_spec *ss);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue