diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2008-12-29 19:49:48 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2008-12-29 19:49:48 +0000 |
commit | 8e22f7f5b048cf7a46a3132cfbc9f2e38ccec076 (patch) | |
tree | c03dc8a4e2178274d6583662a23a5675223a6a98 /apps/codecs/mod.c | |
parent | 6316e0ff53e0c8b3a1f2edf61fc54017eb997e20 (diff) | |
download | rockbox-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.c | 12 |
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 | ||
267 | inline void mixer_stopsample(int channel) | 267 | static inline void mixer_stopsample(int channel) |
268 | { | 268 | { |
269 | mixer.channel[channel].channelactive = false; | 269 | mixer.channel[channel].channelactive = false; |
270 | } | 270 | } |
271 | 271 | ||
272 | inline void mixer_continuesample(int channel) | 272 | static inline void mixer_continuesample(int channel) |
273 | { | 273 | { |
274 | mixer.channel[channel].channelactive = true; | 274 | mixer.channel[channel].channelactive = true; |
275 | } | 275 | } |
276 | 276 | ||
277 | inline void mixer_setvolume(int channel, int volume) | 277 | static 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 | ||
282 | inline void mixer_setpanning(int channel, int panning) | 282 | static 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 | ||
287 | inline void mixer_setamigaperiod(int channel, int amigaperiod) | 287 | static 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 | ||
1093 | inline int clip(int i) | 1093 | static 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); |