path: root/src/polypcore/modargs.h
diff options
authorLennart Poettering <>2006-04-26 15:37:44 +0000
committerLennart Poettering <>2006-04-26 15:37:44 +0000
commitfbb0d1436c5c415e3964d57b0dedaa0d8817c289 (patch)
tree6f0e8b287166a73ba5169de9893da61249da1261 /src/polypcore/modargs.h
parent292b237e356371f827df7a7a0e52a7152b64bfe0 (diff)
add support for parsing channel maps as module arguments
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@802 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore/modargs.h')
1 files changed, 11 insertions, 0 deletions
diff --git a/src/polypcore/modargs.h b/src/polypcore/modargs.h
index 47e2d522..481ead99 100644
--- a/src/polypcore/modargs.h
+++ b/src/polypcore/modargs.h
@@ -24,6 +24,7 @@
#include <inttypes.h>
#include <polyp/sample.h>
+#include <polyp/channelmap.h>
#include <polypcore/core.h>
typedef struct pa_modargs pa_modargs;
@@ -46,4 +47,14 @@ int pa_modargs_get_value_boolean(pa_modargs *ma, const char *key, int *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);
+/* Return channel map data from the argument "channel_map" */
+int pa_modargs_get_channel_map(pa_modargs *ma, pa_channel_map *map);
+/* Combination of pa_modargs_get_sample_spec() and
+pa_modargs_get_channel_map(). Not always suitable, since this routine
+initializes the map parameter based on the channels field of the ss
+structure if no channel_map is found, using pa_channel_map_init_auto() */
+int pa_modargs_get_sample_spec_and_channel_map(pa_modargs *ma, pa_sample_spec *ss, pa_channel_map *map);