-
Notifications
You must be signed in to change notification settings - Fork 12
/
music.h
46 lines (37 loc) · 1.17 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
#ifndef __MUSIC_H__
#define __MUSIC_H__
#include "sound.h"
/* */
/* masks for the info field of sfx_t */
/* */
extern sfx_t *instruments[];
extern int pitch_bend[];
extern int pitch_bend_bits;
extern channel_t music_channels[];
extern int samplecount;
extern int musictime;
extern int next_eventtime;
extern unsigned char *music;
extern unsigned char *music_start;
extern unsigned char *music_end;
extern int samples_per_midiclock;
void M_PaintUnsatSound(int samples);
void M_CalculateEndTime(channel_t *channel, int t);
void M_RestoreFromOldChannels(void);
void M_WriteOutSamples(int samples);
void M_PaintMusic(void);
int M_GetEvent(void);
void output_delay(int delay);
void output_command(void);
void output_noteon(int midi_channel, int pitch, int velocity);
void output_noteoff(int midi_channel, int pitch);
void output_vol(int midi_channel, int volume);
void output_pan(int midi_channel, int pan);
void output_pitchbend(int midi_channel, int pitchbend);
void output_program(int midi_channel, int program);
void output_alloff(void);
void output_reset(void);
void output_tempo(int samples_per_midiclock);
void init_output(void);
void shutdown_output(void);
#endif