diff options
Diffstat (limited to 'apps/plugins/rockboy/sound.h')
-rw-r--r-- | apps/plugins/rockboy/sound.h | 41 |
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 | |||
7 | struct 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 | |||
19 | struct snd | ||
20 | { | ||
21 | int rate; | ||
22 | struct sndchan ch[4]; | ||
23 | byte wave[16]; | ||
24 | }; | ||
25 | |||
26 | |||
27 | extern struct snd snd; | ||
28 | |||
29 | byte sound_read(byte r); | ||
30 | void sound_write(byte r, byte b); | ||
31 | void sound_dirty(void); | ||
32 | void sound_off(void); | ||
33 | void sound_reset(void); | ||
34 | void sound_mix(void); | ||
35 | void s1_init(void); | ||
36 | void s2_init(void); | ||
37 | void s3_init(void); | ||
38 | void s4_init(void); | ||
39 | |||
40 | #endif | ||
41 | |||