ALSA project - the C library reference
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
pcm_multi.c File Reference

PCM Multi Streams to One Conversion Plugin Interface. More...

Functions

int snd_pcm_multi_open (snd_pcm_t **pcmp, const char *name, unsigned int slaves_count, unsigned int master_slave, snd_pcm_t **slaves_pcm, unsigned int *schannels_count, unsigned int channels_count, int *sidxs, unsigned int *schannels, int close_slaves)
 Creates a new Multi PCM.
int _snd_pcm_multi_open (snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode)
 Creates a new Multi PCM.

Detailed Description

PCM Multi Streams to One Conversion Plugin Interface.

Author:
Abramo Bagnara abram.nosp@m.o@al.nosp@m.sa-pr.nosp@m.ojec.nosp@m.t.org
Date:
2000-2001

Function Documentation

int _snd_pcm_multi_open ( snd_pcm_t **  pcmp,
const char *  name,
snd_config_t root,
snd_config_t conf,
snd_pcm_stream_t  stream,
int  mode 
)

Creates a new Multi PCM.

Parameters:
pcmpReturns created PCM handle
nameName of PCM
rootRoot configuration node
confConfiguration node with Multi PCM description
streamStream type
modeStream mode
Return values:
zeroon success otherwise a negative error code
Warning:
Using of this function might be dangerous in the sense of compatibility reasons. The prototype might be freely changed in future.
int snd_pcm_multi_open ( snd_pcm_t **  pcmp,
const char *  name,
unsigned int  slaves_count,
unsigned int  master_slave,
snd_pcm_t **  slaves_pcm,
unsigned int *  schannels_count,
unsigned int  channels_count,
int *  sidxs,
unsigned int *  schannels,
int  close_slaves 
)

Creates a new Multi PCM.

Parameters:
pcmpReturns created PCM handle
nameName of PCM
slaves_countCount of slaves
master_slaveMaster slave number
slaves_pcmArray with slave PCMs
schannels_countArray with slave channel counts
channels_countCount of channels
sidxsArray with channels indexes to slaves
schannelsArray with slave channels
close_slavesWhen set, the slave PCM handle is closed
Return values:
zeroon success otherwise a negative error code
Warning:
Using of this function might be dangerous in the sense of compatibility reasons. The prototype might be freely changed in future.