forked from Aali132/ff7_opengl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
music.h
57 lines (51 loc) · 1.73 KB
/
music.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* ff7_opengl - Complete OpenGL replacement of the Direct3D renderer used in
* the original ports of Final Fantasy VII and Final Fantasy VIII for the PC.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* music.h - music player definitions
*/
#ifndef _MUSIC_H_
#define _MUSIC_H_
#include "types.h"
struct music_plugin
{
void (*music_init)(void *, void *, void *, void *, void **, const char *);
void (*play_music)(char *, uint);
bool (*cross_fade_music)(char *, uint, uint);
void (*pause_music)();
void (*resume_music)();
void (*stop_music)();
bool (*music_status)();
void (*set_master_music_volume)(uint);
void (*set_music_volume)(uint);
void (*set_music_volume_trans)(uint, uint);
void (*set_music_tempo)(unsigned char);
};
void music_init();
bool midi_init(uint unknown);
void cleanup_midi();
void play_midi(uint midi);
void cross_fade_midi(uint midi, uint time);
void pause_midi();
void restart_midi();
void stop_midi();
bool midi_status();
void set_master_midi_volume(uint volume);
void set_midi_volume(uint volume);
void set_midi_volume_trans(uint volume, uint step);
void set_midi_tempo(unsigned char tempo);
#endif