summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2005-08-24 16:21:24 +0000
committerMagnus Holmgren <magnushol@gmail.com>2005-08-24 16:21:24 +0000
commite830efcac075bbf1da97874f432d42fe57a89162 (patch)
treeec86b5683733292ff6bf84472194fde8b2b8da4b /apps/playback.c
parentae1241bf94b88c800a27fcc81ef0c1de1ab94057 (diff)
downloadrockbox-e830efcac075bbf1da97874f432d42fe57a89162.tar.gz
rockbox-e830efcac075bbf1da97874f432d42fe57a89162.zip
iriver: const police.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7400 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 727dc762ab..95005815fe 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -2104,7 +2104,7 @@ void mp3_play_data(const unsigned char* start, int size,
2104 2104
2105void audio_set_buffer_margin(int setting) 2105void audio_set_buffer_margin(int setting)
2106{ 2106{
2107 int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600}; 2107 static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600};
2108 buffer_margin = lookup[setting]; 2108 buffer_margin = lookup[setting];
2109 logf("buffer margin: %ds", buffer_margin); 2109 logf("buffer margin: %ds", buffer_margin);
2110 set_filebuf_watermark(buffer_margin); 2110 set_filebuf_watermark(buffer_margin);
@@ -2116,7 +2116,7 @@ void audio_set_crossfade(int type)
2116 long size; 2116 long size;
2117 bool was_playing = playing; 2117 bool was_playing = playing;
2118 int offset = 0; 2118 int offset = 0;
2119 int lookup[] = {1, 2, 4, 6, 8, 10, 12, 14}; 2119 static const int lookup[] = {1, 2, 4, 6, 8, 10, 12, 14};
2120 int seconds = lookup[global_settings.crossfade_duration]; 2120 int seconds = lookup[global_settings.crossfade_duration];
2121 2121
2122 /* Store the track resume position */ 2122 /* Store the track resume position */