'\" t .\" Title: snd_rawmidi_new .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: MIDI API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_RAWMIDI_NEW" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "MIDI API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_rawmidi_new \- create a rawmidi instance .SH "SYNOPSIS" .HP \w'int\ snd_rawmidi_new('u .BI "int snd_rawmidi_new(struct\ snd_card\ *\ " "card" ", char\ *\ " "id" ", int\ " "device" ", int\ " "output_count" ", int\ " "input_count" ", struct\ snd_rawmidi\ **\ " "rrawmidi" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fIid\fR .RS 4 the id string .RE .PP \fIdevice\fR .RS 4 the device index .RE .PP \fIoutput_count\fR .RS 4 the number of output streams .RE .PP \fIinput_count\fR .RS 4 the number of input streams .RE .PP \fIrrawmidi\fR .RS 4 the pointer to store the new rawmidi instance .RE .SH "DESCRIPTION" .PP Creates a new rawmidi instance\&. Use \fBsnd_rawmidi_set_ops\fR to set the operators to the new instance\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br