.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SND_PCM_NEW" "" "06 October 2005" "" ""
.SH NAME
snd_pcm_new \- create a new PCM instance
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_pcm_new (snd_card_t * \fIcard\fB, char * \fIid\fB, int \fIdevice\fB, int \fIplayback_count\fB, int \fIcapture_count\fB, snd_pcm_t ** \fIrpcm\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcard\fB\fR
the card instance
.TP
\fB\fIid\fB\fR
the id string
.TP
\fB\fIdevice\fB\fR
the device index (zero based)
.TP
\fB\fIplayback_count\fB\fR
the number of substreams for playback
.TP
\fB\fIcapture_count\fB\fR
the number of substreams for capture
.TP
\fB\fIrpcm\fB\fR
the pointer to store the new pcm instance
.SH "DESCRIPTION"
.PP
Creates a new PCM instance.
.PP
The pcm operators have to be set afterwards to the new instance
via \fBsnd_pcm_set_ops\fR\&.
.PP
Returns zero if successful, or a negative error code on failure.