summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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 */