summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/sound.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/sound.h')
-rw-r--r--apps/plugins/rockboy/sound.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/apps/plugins/rockboy/sound.h b/apps/plugins/rockboy/sound.h
new file mode 100644
index 0000000000..1a24ee600f
--- /dev/null
+++ b/apps/plugins/rockboy/sound.h
@@ -0,0 +1,41 @@
1
2
3#ifndef __SOUND_H__
4#define __SOUND_H__
5
6
7struct sndchan
8{
9 int on;
10 unsigned pos;
11 int cnt, encnt, swcnt;
12 int len, enlen, swlen;
13 int swfreq;
14 int freq;
15 int envol, endir;
16};
17
18
19struct snd
20{
21 int rate;
22 struct sndchan ch[4];
23 byte wave[16];
24};
25
26
27extern struct snd snd;
28
29byte sound_read(byte r);
30void sound_write(byte r, byte b);
31void sound_dirty(void);
32void sound_off(void);
33void sound_reset(void);
34void sound_mix(void);
35void s1_init(void);
36void s2_init(void);
37void s3_init(void);
38void s4_init(void);
39
40#endif
41