fix crash when specifying --source on command line
[rofl0r-gnuboy.git] / sound.h
blob7b6410c0f82a6b1ae930fae638b758e17b2a2f88
3 #ifndef __SOUND_H__
4 #define __SOUND_H__
7 struct sndchan
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;
19 struct snd
21 int rate;
22 struct sndchan ch[4];
23 byte wave[16];
27 extern struct snd snd;
29 #include "defs.h"
31 void sound_write(byte r, byte b);
32 byte sound_read(byte r);
33 void sound_dirty();
34 void sound_off();
35 void sound_reset();
36 void sound_mix();
37 void s1_init();
38 void s2_init();
39 void s3_init();
40 void s4_init();
44 #endif