-
Notifications
You must be signed in to change notification settings - Fork 20
/
midifile.h
31 lines (24 loc) · 854 Bytes
/
midifile.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
/*
* gbsplay is a Gameboy sound player
*
* common code of MIDI output plugins
*
* 2022 (C) by Christian Garbs <[email protected]>
*
* Licensed under GNU GPL v1 or, at your option, any later version.
*/
#ifndef _MIDIFILE_H_
#define _MIDIFILE_H_
#include "common.h"
#include "plugout.h"
extern int note[4];
extern int midi_file_error();
extern int midi_file_is_closed();
extern void midi_update_mute(const struct gbs_channel_status status[]);
extern void midi_note_on(cycles_t cycles, int channel, int new_note, int velocity);
extern void midi_note_off(cycles_t cycles, int channel);
extern void midi_pan(cycles_t cycles, int channel, int pan);
extern long midi_open(enum plugout_endian *endian, long rate, long *buffer_bytes, const struct plugout_metadata metadata);
extern int midi_skip(int subsong);
extern void midi_close(void);
#endif