Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.51 KB

native_midi.h

File metadata and controls

40 lines (32 loc) · 1.51 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_
Oct 17, 2017
Oct 17, 2017
25
#include "SDL_rwops.h"
Jul 9, 2005
Jul 9, 2005
26
27
28
typedef struct _NativeMidiSong NativeMidiSong;
Oct 17, 2017
Oct 17, 2017
29
int native_midi_detect(void);
Jun 2, 2013
Jun 2, 2013
30
NativeMidiSong *native_midi_loadsong_RW(SDL_RWops *src, int freesrc);
31
void native_midi_freesong(NativeMidiSong *song);
Jan 1, 2012
Jan 1, 2012
32
void native_midi_start(NativeMidiSong *song, int loops);
Oct 18, 2017
Oct 18, 2017
33
34
void native_midi_pause(void);
void native_midi_resume(void);
Oct 17, 2017
Oct 17, 2017
35
36
void native_midi_stop(void);
int native_midi_active(void);
37
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_ */