1WildMidi_GetMidiOutput(3)WildMidi Programmer's ManualWildMidi_GetMidiOutput(3)
2
3
4
6 WildMidi_GetMidiOutput - get a midi file of a file being processed.
7
9 libWildMidi
10
12 #include <wildmidi_lib.h>
13
14 int WildMidi_GetMidiOutput (midi *handle, int8_t **buffer, uint32_t
15 *size)
16
18 Writes the midi-format data from the file being processed to the memory
19 location pointed to by buffer. The data will be in type-0 format for
20 type-0 and type-1 files. For type-2 files, the data will be in type-2
21 format unless the WM_MO_SAVEASTYPE0 option is set.
22
23 handle The identifier obtained from opening a file with Wild‐
24 Midi_Open(3) or WildMidi_OpenBuffer(3)
25
26 buffer The memory location where libWildMidi is to store the midi data
27 from the handle. The buffer will be allocated with malloc() and
28 must be free()d by the caller when it is no longer needed.
29
30 size The location where libWildMidi is to store the size of the midi
31 data stored in buffer.
32
34 Returns -1 on error otherwise returns 0
35
37 WildMidi_GetVersion(3), WildMidi_Init(3), WildMidi_MasterVolume(3),
38 WildMidi_Open(3), WildMidi_OpenBuffer(3), WildMidi_SetOption(3), Wild‐
39 Midi_GetOutput(3), WildMidi_GetInfo(3), WildMidi_FastSeek(3), Wild‐
40 Midi_Close(3), WildMidi_Shutdown(3), wildmidi.cfg(5)
41
43 Chris Ison <chrisisonwildcode@gmail.com> Bret Curtis <psi29a@gmail.com>
44
46 Copyright (C) WildMidi Developers 2001-2016
47
48 This file is part of WildMIDI.
49
50 WildMIDI is free software: you can redistribute and/or modify the
51 player under the terms of the GNU General Public License and you can
52 redistribute and/or modify the library under the terms of the GNU
53 Lesser General Public License as published by the Free Software Founda‐
54 tion, either version 3 of the licenses, or(at your option) any later
55 version.
56
57 WildMIDI is distributed in the hope that it will be useful, but WITHOUT
58 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
59 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
60 and the GNU Lesser General Public License for more details.
61
62 You should have received a copy of the GNU General Public License and
63 the GNU Lesser General Public License along with WildMIDI. If not, see
64 <http://www.gnu.org/licenses/>.
65
66 This manpage is licensed under the Creative Commons Attribution-Share
67 Alike 3.0 Unported License. To view a copy of this license, visit
68 http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Cre‐
69 ative Commons, 171 Second Street, Suite 300, San Francisco, California,
70 94105, USA.
71
72 10 March 2016 WildMidi_GetMidiOutput(3)