summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-10-07 19:37:33 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-10-07 19:37:33 +0000
commit46573019a53dca411f754d40d0f21c1e4eafaedf (patch)
treefa2f3baf19b8bc7ed25b709c7dda76272e85a57c /apps/playback.c
parent23b7e957708ff7272ed10cbeae24cf9fd7d7ad65 (diff)
add HAVE_DISK_STORAGE, and use that instead of HAVE_FLASH_STORAGE when checking for an actual disk (i.e. related to spindown, skipping,...)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18735 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index ee1993a2da..925092a3dd 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -783,7 +783,7 @@ int audio_get_file_pos(void)
return 0;
}
-#ifndef HAVE_FLASH_STORAGE
+#ifdef HAVE_DISK_STORAGE
void audio_set_buffer_margin(int setting)
{
static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600};
@@ -2187,7 +2187,7 @@ static void audio_play_start(size_t offset)
/* Officially playing */
queue_reply(&audio_queue, 1);
-#ifndef HAVE_FLASH_STORAGE
+#ifdef HAVE_DISK_STORAGE
set_filebuf_watermark(buffer_margin, 0);
#endif
@@ -2584,7 +2584,7 @@ void audio_init(void)
audio_is_initialized = true;
sound_settings_apply();
-#ifndef HAVE_FLASH_STORAGE
+#ifdef HAVE_DISK_STORAGE
audio_set_buffer_margin(global_settings.buffer_margin);
#endif