Bump version numbers for 3.13
[maemo-rb.git] / apps / plugins / rockboy / sound.h
blobe40fbad2d5e40f0f06a8c2448f681c2441d0da08
1 #ifndef __SOUND_H__
2 #define __SOUND_H__
4 #include "defs.h"
6 struct sndchan
8 /* S1, S2, S3, S4 */
9 int on, len, skip, cont;
10 unsigned int pos;
12 /* S1, S2, S4 */
13 int enlen, envol, endir, enlenreload;
15 /* S1, S2 */
16 const byte *wave;
18 /* S1 only */
19 int swlen, swlenreload, swsteps, swstep, swdir;
21 /* S3 only */
22 int outputlevel;
24 /* S4 only */
25 int shiftskip, shiftpos, shiftright, shiftleft;
26 int nsteps, clock;
30 struct snd
32 int level1, level2, balance;
33 bool gbDigitalSound;
34 int rate;
35 int quality;
36 struct sndchan ch[4];
39 extern struct snd snd;
41 #if defined(ICODE_ATTR) && defined(CPU_ARM)
42 #undef ICODE_ATTR
43 #define ICODE_ATTR
44 #endif
46 byte sound_read(byte r) ICODE_ATTR;
47 void sound_write(byte r, byte b) ICODE_ATTR;
48 void sound_dirty(void);
49 void sound_reset(void);
50 void sound_mix(void) ICODE_ATTR;
52 #endif