From e830efcac075bbf1da97874f432d42fe57a89162 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Wed, 24 Aug 2005 16:21:24 +0000 Subject: iriver: const police. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7400 a1c6a512-1295-4272-9138-f99709370657 --- apps/playback.c | 4 ++-- 1 file 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, void audio_set_buffer_margin(int setting) { - int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600}; + static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600}; buffer_margin = lookup[setting]; logf("buffer margin: %ds", buffer_margin); set_filebuf_watermark(buffer_margin); @@ -2116,7 +2116,7 @@ void audio_set_crossfade(int type) long size; bool was_playing = playing; int offset = 0; - int lookup[] = {1, 2, 4, 6, 8, 10, 12, 14}; + static const int lookup[] = {1, 2, 4, 6, 8, 10, 12, 14}; int seconds = lookup[global_settings.crossfade_duration]; /* Store the track resume position */ -- cgit v1.2.3