Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.55 KB

native_midi.h

File metadata and controls

40 lines (32 loc) · 1.55 KB
 
Dec 31, 2011
Dec 31, 2011
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
native_midi: Hardware Midi support for the SDL_mixer library
Copyright (C) 2000 Florian 'Proff' Schulze <florian.proff.schulze@gmx.net>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
20
21
22
23
24
*/
#ifndef _NATIVE_MIDI_H_
#define _NATIVE_MIDI_H_
Jul 9, 2005
Jul 9, 2005
25
26
#include <SDL_rwops.h>
27
28
typedef struct _NativeMidiSong NativeMidiSong;
Aug 19, 2001
Aug 19, 2001
29
int native_midi_detect();
Sep 26, 2009
Sep 26, 2009
30
NativeMidiSong *native_midi_loadsong(const char *midifile);
Dec 31, 2011
Dec 31, 2011
31
NativeMidiSong *native_midi_loadsong_RW(SDL_RWops *rw, int freerw);
32
33
void native_midi_freesong(NativeMidiSong *song);
void native_midi_start(NativeMidiSong *song);
Jan 1, 2012
Jan 1, 2012
34
int native_midi_jump_to_time(NativeMidiSong *song, double time);
35
36
37
void native_midi_stop();
int native_midi_active();
void native_midi_setvolume(int volume);
Sep 26, 2009
Sep 26, 2009
38
const char *native_midi_error(void);
39
40
#endif /* _NATIVE_MIDI_H_ */