summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/sound.c')
-rw-r--r--apps/plugins/rockboy/sound.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/rockboy/sound.c b/apps/plugins/rockboy/sound.c
index 58cbe542f9..deeacc7bbf 100644
--- a/apps/plugins/rockboy/sound.c
+++ b/apps/plugins/rockboy/sound.c
@@ -49,7 +49,7 @@ static const int freqtab[8] =
49 (1<<14)/7 49 (1<<14)/7
50 }; 50 };
51 51
52struct snd snd; 52struct snd snd IBSS_ATTR;
53int pcm_submit(void); 53int pcm_submit(void);
54 54
55#define RATE (snd.rate) 55#define RATE (snd.rate)
@@ -161,7 +161,7 @@ void sound_reset(void)
161void sound_mix(void) 161void sound_mix(void)
162{ 162{
163 163
164 if (!sound) return; 164 if (!options.sound) return;
165 int s, l, r, f, n; 165 int s, l, r, f, n;
166 166
167 if (!RATE || cpu.snd < RATE) return; 167 if (!RATE || cpu.snd < RATE) return;
@@ -289,7 +289,7 @@ void sound_mix(void)
289 289
290byte sound_read(byte r) 290byte sound_read(byte r)
291{ 291{
292 if(!sound) return 0; 292 if(!options.sound) return 0;
293 sound_mix(); 293 sound_mix();
294 /* printf("read %02X: %02X\n", r, REG(r)); */ 294 /* printf("read %02X: %02X\n", r, REG(r)); */
295 return REG(r); 295 return REG(r);
@@ -346,7 +346,7 @@ void s4_init(void)
346 346
347void sound_write(byte r, byte b) 347void sound_write(byte r, byte b)
348{ 348{
349 if(!sound) return; 349 if(!options.sound) return;
350#if 0 350#if 0
351 static void *timer; 351 static void *timer;
352 if (!timer) timer = sys_timer(); 352 if (!timer) timer = sys_timer();