summaryrefslogtreecommitdiffstats
path: root/src/polyp/channelmap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-04-26 14:33:45 +0000
committerLennart Poettering <lennart@poettering.net>2006-04-26 14:33:45 +0000
commit195e96912f062b3faa93547dde014c45ccb74628 (patch)
tree77e8bb093fc331c589f2147ac7a5c954151fa063 /src/polyp/channelmap.h
parent31ad62fa4d464f4298bc8e1ad6fbe4b3c03115fa (diff)
* add new function pa_channel_map_parse()
* increase PA_CHANNEL_MAP_SNPRINT_MAX * add "top" channel positions git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@799 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polyp/channelmap.h')
-rw-r--r--src/polyp/channelmap.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/polyp/channelmap.h b/src/polyp/channelmap.h
index bb9f78b1..76380b5f 100644
--- a/src/polyp/channelmap.h
+++ b/src/polyp/channelmap.h
@@ -107,6 +107,16 @@ typedef enum pa_channel_position {
PA_CHANNEL_POSITION_AUX14,
PA_CHANNEL_POSITION_AUX15,
+ PA_CHANNEL_POSITION_TOP_CENTER,
+
+ PA_CHANNEL_POSITION_TOP_FRONT_LEFT,
+ PA_CHANNEL_POSITION_TOP_FRONT_RIGHT,
+ PA_CHANNEL_POSITION_TOP_FRONT_CENTER,
+
+ PA_CHANNEL_POSITION_TOP_REAR_LEFT,
+ PA_CHANNEL_POSITION_TOP_REAR_RIGHT,
+ PA_CHANNEL_POSITION_TOP_REAR_CENTER,
+
PA_CHANNEL_POSITION_MAX
} pa_channel_position_t;
@@ -134,11 +144,14 @@ pa_channel_map* pa_channel_map_init_auto(pa_channel_map *m, unsigned channels);
const char* pa_channel_position_to_string(pa_channel_position_t pos);
/** The maximum length of strings returned by pa_channel_map_snprint() */
-#define PA_CHANNEL_MAP_SNPRINT_MAX 64
+#define PA_CHANNEL_MAP_SNPRINT_MAX 336
/** Make a humand readable string from the specified channel map */
char* pa_channel_map_snprint(char *s, size_t l, const pa_channel_map *map);
+/** Parse a channel position list into a channel map structure. \since 0.8.1 */
+pa_channel_map *pa_channel_map_parse(pa_channel_map *map, const char *s);
+
/** Compare two channel maps. Return 1 if both match. */
int pa_channel_map_equal(const pa_channel_map *a, const pa_channel_map *b);