mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
add new channel map argument to pa_simple_new()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@911 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5f6d8c9c8b
commit
ee35a063b2
4 changed files with 11 additions and 6 deletions
|
|
@ -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. */
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue