repo.or.cz
/
rofl0r-gnuboy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix crash when specifying --source on command line
[rofl0r-gnuboy.git]
/
sound.h
blob
7b6410c0f82a6b1ae930fae638b758e17b2a2f88
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
#include
"defs.h"
30
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
();
41
42
43
44
#endif
45
46