---
name: "snd_rawmidi_receive"
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_receive"
---

# snd\_rawmidi\_receive(9)

receive the input data from the device

## NAME

snd\_rawmidi\_receive - receive the input data from the device

## SYNOPSIS

**int snd\_rawmidi\_receive(struct snd\_rawmidi\_substream \*** *substream***, const unsigned char \*** *buffer***, int** *count***);**

## ARGUMENTS

*substream*

the rawmidi substream

*buffer*

the buffer pointer

*count*

the data size to read

## DESCRIPTION

Reads the data from the internal buffer.

## RETURN

The size of read data, or a negative error code on failure.

## COPYRIGHT
