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]
/
newsound.c
blob
0ae04da4e8519e0ca4111c50915ee7a7bafb0fc7
1
/*
2
* new sound core for 1.1.x
3
*/
4
5
6
7
enum
sevcode
8
{
9
SEV_S1E
,
10
SEV_S2E
,
11
SEV_S3E
,
12
SEV_S4E
,
13
SEV_S1L
,
14
SEV_S2L
,
15
SEV_S3L
,
16
SEV_S4L
,
17
SEV_SW
,
18
SEV_WAV
19
};
20
21
22
struct
sev
23
{
24
int
prev
,
next
;
25
int
time
;
26
};
27
28
29
30
static struct
sev
*
sevs
;
31
32
33
34
void
sound_mix
(
int
cycles
)
35
{
36
37
}
38
39
40
void
sound_update
(
int
force
)
41
{
42
int
now
=
0
;
43
44
for
(;;)
45
{
46
if
(
sevs
->
time
>
cpu
.
snd
)
break
;
47
48
}
49
}
50
51
52
53
54
55
56
57