WildMidi_GetMidiOutput3
Get a midi file of a file being processed.
Usage
#include <wildmidi_lib.h>
int WildMidi_GetMidiOutput (midi *handle, int8_t **buffer, uint32_t *size)
Library
libWildMidi
Overview
Writes the midi-format data from the file being processed to the memory location pointed to by buffer. The data will be in type-0 format for type-0 and type-1 files. For type-2 files, the data will be in type-2 format unless the WM_MO_SAVEASTYPE0 option is set.
- handle
-
The identifier obtained from opening a file with WildMidi_Open(3) or WildMidi_OpenBuffer(3)
- buffer
-
The memory location where libWildMidi is to store the midi data from the handle. The buffer will be allocated with malloc() and must be free()d by the caller when it is no longer needed.
- size
-
The location where libWildMidi is to store the size of the midi data stored in buffer.
Return value
Returns -1 on error otherwise returns 0
Releases
Unchanged in 6 releases since Debian 9 (Stretch).