snd_rawmidi_read

Name

snd_rawmidi_read -- transfer the MIDI stream from RawMidi device

Synopsis

ssize_t snd_rawmidi_read(snd_rawmidi_t *handle, void *buffer, size_t size);

Description

Function reads bytes from input queue. Function returns zero or positive value if the read was successful (value represents count of bytes which were successfully read from device) or negative error value if error occurred. Function will suspend the process if block behaviour is active.