.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SND_RAWMIDI_TRANSMIT_PEEK" "" "06 October 2005" "" ""
.SH NAME
snd_rawmidi_transmit_peek \- copy data from the internal buffer
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_rawmidi_transmit_peek (snd_rawmidi_substream_t * \fIsubstream\fB, unsigned char * \fIbuffer\fB, int \fIcount\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIsubstream\fB\fR
the rawmidi substream
.TP
\fB\fIbuffer\fB\fR
the buffer pointer
.TP
\fB\fIcount\fB\fR
data size to transfer
.SH "DESCRIPTION"
.PP
Copies data from the internal output buffer to the given buffer.
.PP
Call this in the interrupt handler when the midi output is ready,
and call \fBsnd_rawmidi_transmit_ack\fR after the transmission is
finished.
.PP
Returns the size of copied data, or a negative error code on failure.