summaryrefslogtreecommitdiffstats
path: root/src/polyp/simple.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp/simple.h')
-rw-r--r--src/polyp/simple.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/polyp/simple.h b/src/polyp/simple.h
index 9066826b..bf3cc330 100644
--- a/src/polyp/simple.h
+++ b/src/polyp/simple.h
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <polyp/sample.h>
+#include <polyp/channelmap.h>
#include <polyp/def.h>
#include <polyp/cdecl.h>
@@ -57,6 +58,7 @@
* NULL, // Use the default device.
* "Music", // Description of our stream.
* &ss, // Our sample format.
+ * NULL, // Use default channel map
* NULL, // Use default buffering attributes.
* NULL, // Ignore error code.
* );
@@ -112,11 +114,12 @@ typedef struct pa_simple pa_simple;
pa_simple* pa_simple_new(
const char *server, /**< Server name, or NULL for default */
const char *name, /**< A descriptive name for this client (application name, ...) */
- pa_stream_direction_t dir, /**< Open this stream for recording or playback? */
+ pa_stream_direction_t dir, /**< Open this stream for recording or playback? */
const char *dev, /**< Sink (resp. source) name, or NULL for default */
const char *stream_name, /**< A descriptive name for this client (application name, song title, ...) */
- const pa_sample_spec *ss, /**< The sample type to use */
- const pa_buffer_attr *attr, /**< Buffering attributes, or NULL for default */
+ const pa_sample_spec *ss, /**< The sample type to use */
+ const pa_channel_map *map, /**< The channel map to use, or NULL for default */
+ const pa_buffer_attr *attr, /**< Buffering attributes, or NULL for default */
int *error /**< A pointer where the error code is stored when the routine returns NULL. It is OK to pass NULL here. */
);