1SND_RAWMIDI_NEW(9) MIDI API SND_RAWMIDI_NEW(9)
2
3
4
6 snd_rawmidi_new - create a rawmidi instance
7
9 int snd_rawmidi_new(struct snd_card * card, char * id, int device,
10 int output_count, int input_count,
11 struct snd_rawmidi ** rrawmidi);
12
14 card
15 the card instance
16
17 id
18 the id string
19
20 device
21 the device index
22
23 output_count
24 the number of output streams
25
26 input_count
27 the number of input streams
28
29 rrawmidi
30 the pointer to store the new rawmidi instance
31
33 Creates a new rawmidi instance. Use snd_rawmidi_set_ops to set the
34 operators to the new instance.
35
36 Returns zero if successful, or a negative error code on failure.
37
39Kernel Hackers Manual 2.6. June 2019 SND_RAWMIDI_NEW(9)