fix crash when specifying --source on command line
[rofl0r-gnuboy.git] / newsound.c
blob0ae04da4e8519e0ca4111c50915ee7a7bafb0fc7
1 /*
2 * new sound core for 1.1.x
3 */
7 enum sevcode
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
22 struct sev
24 int prev, next;
25 int time;
30 static struct sev *sevs;
34 void sound_mix(int cycles)
40 void sound_update(int force)
42 int now = 0;
44 for (;;)
46 if (sevs->time > cpu.snd) break;