summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/mod.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-11 21:40:51 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-11 21:40:51 +0100
commit2a3e1628a50b9de7c1462ee95eb79937795f5409 (patch)
tree3c2c965007a71c4895a65d8a91252b9ce2255719 /lib/rbcodec/codecs/mod.c
parent85c98bc63c6635fe9e337178f23faa9c0ec3f9fb (diff)
downloadrockbox-2a3e1628a50b9de7c1462ee95eb79937795f5409.tar.gz
rockbox-2a3e1628a50b9de7c1462ee95eb79937795f5409.zip
Limit more variables to file scope
Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361
Diffstat (limited to 'lib/rbcodec/codecs/mod.c')
-rw-r--r--lib/rbcodec/codecs/mod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbcodec/codecs/mod.c b/lib/rbcodec/codecs/mod.c
index 4dd0cde6e5..3d5f729235 100644
--- a/lib/rbcodec/codecs/mod.c
+++ b/lib/rbcodec/codecs/mod.c
@@ -234,9 +234,9 @@ struct s_mixer {
234 struct s_channel channel[32]; 234 struct s_channel channel[32];
235}; 235};
236 236
237struct s_song modsong IDATA_ATTR; /* The Song */ 237static struct s_song modsong IDATA_ATTR; /* The Song */
238struct s_modplayer modplayer IDATA_ATTR; /* The Module Player */ 238static struct s_modplayer modplayer IDATA_ATTR; /* The Module Player */
239struct s_mixer mixer IDATA_ATTR; 239static struct s_mixer mixer IDATA_ATTR;
240 240
241/* The Amiga Period Table (+1 because we use index 0 for period 0 = no new note) */ 241/* The Amiga Period Table (+1 because we use index 0 for period 0 = no new note) */
242static unsigned short s_periodtable[37*8+1] IDATA_ATTR = 242static unsigned short s_periodtable[37*8+1] IDATA_ATTR =
@@ -290,7 +290,7 @@ static signed short s_sintable[0x40] IDATA_ATTR =
290 -255, -254, -250, -244, -235, -224, -211, -197, 290 -255, -254, -250, -244, -235, -224, -211, -197,
291 -180, -161, -141, -119, -97, -73, -49, -24}; 291 -180, -161, -141, -119, -97, -73, -49, -24};
292 292
293const unsigned short mixingrate = 44100; 293static const unsigned short mixingrate = 44100;
294 294
295static void mixer_playsample(int channel, int instrument) ICODE_ATTR; 295static void mixer_playsample(int channel, int instrument) ICODE_ATTR;
296void mixer_playsample(int channel, int instrument) 296void mixer_playsample(int channel, int instrument)