---
name: "snd_rawmidi_new"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_rawmidi_new"
---

# snd\_rawmidi\_new(9)

create a rawmidi instance

## NAME

snd\_rawmidi\_new - create a rawmidi instance

## SYNOPSIS

**int snd\_rawmidi\_new(struct snd\_card \*** *card***, char \*** *id***, int** *device***, int** *output\_count***, int** *input\_count***, struct snd\_rawmidi \*\*** *rrawmidi***);**

## ARGUMENTS

*card*

the card instance

*id*

the id string

*device*

the device index

*output\_count*

the number of output streams

*input\_count*

the number of input streams

*rrawmidi*

the pointer to store the new rawmidi instance

## DESCRIPTION

Creates a new rawmidi instance. Use **snd\_rawmidi\_set\_ops** to set the operators to the new instance.

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
