1
0
Fork 0
forked from len0rd/rockbox

iriver: const police.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7400 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2005-08-24 16:21:24 +00:00
parent ae1241bf94
commit e830efcac0

View file

@ -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 */