summaryrefslogtreecommitdiff
path: root/apps/codecs/mod.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2008-12-29 19:49:48 +0000
committerBertrik Sikken <bertrik@sikken.nl>2008-12-29 19:49:48 +0000
commit8e22f7f5b048cf7a46a3132cfbc9f2e38ccec076 (patch)
treec03dc8a4e2178274d6583662a23a5675223a6a98 /apps/codecs/mod.c
parent6316e0ff53e0c8b3a1f2edf61fc54017eb997e20 (diff)
downloadrockbox-8e22f7f5b048cf7a46a3132cfbc9f2e38ccec076.tar.gz
rockbox-8e22f7f5b048cf7a46a3132cfbc9f2e38ccec076.zip
Make local functions static in codecs, where possible.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19612 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/mod.c')
-rw-r--r--apps/codecs/mod.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/codecs/mod.c b/apps/codecs/mod.c
index c8ada66f18..91b5955b40 100644
--- a/apps/codecs/mod.c
+++ b/apps/codecs/mod.c
@@ -264,27 +264,27 @@ void mixer_playsample(int channel, int instrument)
264 modplayer.modchannel[channel].instrument = instrument; 264 modplayer.modchannel[channel].instrument = instrument;
265} 265}
266 266
267inline void mixer_stopsample(int channel) 267static inline void mixer_stopsample(int channel)
268{ 268{
269 mixer.channel[channel].channelactive = false; 269 mixer.channel[channel].channelactive = false;
270} 270}
271 271
272inline void mixer_continuesample(int channel) 272static inline void mixer_continuesample(int channel)
273{ 273{
274 mixer.channel[channel].channelactive = true; 274 mixer.channel[channel].channelactive = true;
275} 275}
276 276
277inline void mixer_setvolume(int channel, int volume) 277static inline void mixer_setvolume(int channel, int volume)
278{ 278{
279 mixer.channel[channel].volume = volume; 279 mixer.channel[channel].volume = volume;
280} 280}
281 281
282inline void mixer_setpanning(int channel, int panning) 282static inline void mixer_setpanning(int channel, int panning)
283{ 283{
284 mixer.channel[channel].panning = panning; 284 mixer.channel[channel].panning = panning;
285} 285}
286 286
287inline void mixer_setamigaperiod(int channel, int amigaperiod) 287static inline void mixer_setamigaperiod(int channel, int amigaperiod)
288{ 288{
289 /* Just to make sure we don't devide by zero 289 /* Just to make sure we don't devide by zero
290 * amigaperiod shouldn't 0 anyway - if it is the case 290 * amigaperiod shouldn't 0 anyway - if it is the case
@@ -1090,7 +1090,7 @@ void playeffect(int currenttick)
1090 } 1090 }
1091} 1091}
1092 1092
1093inline int clip(int i) 1093static inline int clip(int i)
1094{ 1094{
1095 if (i > 32767) return(32767); 1095 if (i > 32767) return(32767);
1096 else if (i < -32768) return(-32768); 1096 else if (i < -32768) return(-32768);