Functions | |
int | snd_pcm_file_open (snd_pcm_t **pcmp, const char *name, const char *fname, int fd, const char *ifname, int ifd, const char *fmt, int perm, snd_pcm_t *slave, int close_slave) |
Creates a new File PCM. | |
int | _snd_pcm_file_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 File PCM. |
int _snd_pcm_file_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 File PCM.
pcmp | Returns created PCM handle | |
name | Name of PCM | |
root | Root configuration node | |
conf | Configuration node with File PCM description | |
stream | Stream type | |
mode | Stream mode |
zero | on success otherwise a negative error code |
int snd_pcm_file_open | ( | snd_pcm_t ** | pcmp, | |
const char * | name, | |||
const char * | fname, | |||
int | fd, | |||
const char * | ifname, | |||
int | ifd, | |||
const char * | fmt, | |||
int | perm, | |||
snd_pcm_t * | slave, | |||
int | close_slave | |||
) |
Creates a new File PCM.
pcmp | Returns created PCM handle | |
name | Name of PCM | |
fname | Output filename (or NULL if file descriptor fd is available) | |
fd | Output file descriptor | |
ifname | Input filename (or NULL if file descriptor ifd is available) | |
ifd | Input file descriptor (if (ifd < 0) && (ifname == NULL), no input redirection will be performed) | |
fmt | File format ("raw" is supported only) | |
perm | File permission | |
slave | Slave PCM handle | |
close_slave | When set, the slave PCM handle is closed with copy PCM |
zero | on success otherwise a negative error code |