---
name: "snd_rawmidi_transmit_peek"
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_transmit_peek"
---

# snd\_rawmidi\_transmit\_peek(9)

copy data from the internal buffer

## NAME

snd\_rawmidi\_transmit\_peek - copy data from the internal buffer

## SYNOPSIS

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

## ARGUMENTS

*substream*

the rawmidi substream

*buffer*

the buffer pointer

*count*

data size to transfer

## DESCRIPTION

Copies data from the internal output buffer to the given buffer.

Call this in the interrupt handler when the midi output is ready, and call **snd\_rawmidi\_transmit\_ack** after the transmission is finished.

## RETURN

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

## COPYRIGHT
