mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
modargs: Adding pa_modargs_get_value_volume()
This function gets a pa_volume_t from a string.
This commit is contained in:
parent
9e2b6a0b5c
commit
f9beb8e867
2 changed files with 18 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include <pulse/sample.h>
|
||||
#include <pulse/channelmap.h>
|
||||
#include <pulse/proplist.h>
|
||||
#include <pulse/volume.h>
|
||||
#include <pulsecore/macro.h>
|
||||
|
||||
typedef struct pa_modargs pa_modargs;
|
||||
|
|
@ -48,6 +49,9 @@ int pa_modargs_get_value_boolean(pa_modargs *ma, const char *key, pa_bool_t *val
|
|||
/* Return a module argument as double value in *value */
|
||||
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 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