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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/sound.c b/apps/plugins/rockboy/sound.c
index c1b06a1bd7..041b7831d3 100644
--- a/apps/plugins/rockboy/sound.c
+++ b/apps/plugins/rockboy/sound.c
@@ -116,6 +116,9 @@ struct snd snd IBSS_ATTR;
116static void gbSoundChannel1(int *r, int *l) 116static void gbSoundChannel1(int *r, int *l)
117{ 117{
118 int vol = S1.envol; 118 int vol = S1.envol;
119
120 int freq = 0;
121
119 int value = 0; 122 int value = 0;
120 123
121 if(S1.on && (S1.len || !S1.cont)) 124 if(S1.on && (S1.len || !S1.cont))
@@ -169,7 +172,7 @@ static void gbSoundChannel1(int *r, int *l)
169 172
170 if(S1.swlen<=0) 173 if(S1.swlen<=0)
171 { 174 {
172 int freq = (((int)(R_NR14&7) << 8) | R_NR13); 175 freq = (((int)(R_NR14&7) << 8) | R_NR13);
173 176
174 int updown = 1; 177 int updown = 1;
175 178