diff options
| author | Nils Wallménius <nils@rockbox.org> | 2007-08-01 08:50:44 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2007-08-01 08:50:44 +0000 |
| commit | 0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f (patch) | |
| tree | d84ec59c3b9fc00ce46329c01a66b8da46b0e204 /apps/playback.c | |
| parent | 3b3fd4997ee32cf5b0bc7cf07b3ac9a73cbcb388 (diff) | |
| download | rockbox-0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f.zip rockbox-0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f.tar.gz rockbox-0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f.tar.bz2 rockbox-0bfa3e76ce8f2c5465ff568b7f4dcf7b5fbb462f.tar.xz | |
Disable 'Disk spindown' and 'Anti skip buffer' settings and some related stuff for flash storage targets as they make no sense
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14110 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
| -rw-r--r-- | apps/playback.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c index 0533ddc..7b9b664 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -792,6 +792,7 @@ int audio_get_file_pos(void) return 0; } +#ifndef HAVE_FLASH_STORAGE void audio_set_buffer_margin(int setting) { static const int lookup[] = {5, 15, 30, 60, 120, 180, 300, 600}; @@ -799,6 +800,7 @@ void audio_set_buffer_margin(int setting) logf("buffer margin: %ld", buffer_margin); set_filebuf_watermark(buffer_margin); } +#endif /* Take nescessary steps to enable or disable the crossfade setting */ void audio_set_crossfade(int enable) @@ -3839,5 +3841,8 @@ void audio_init(void) #ifdef HAVE_WM8758 eq_hw_enable(global_settings.eq_hw_enabled); #endif +#ifndef HAVE_FLASH_STORAGE audio_set_buffer_margin(global_settings.buffer_margin); +#endif } /* audio_init */ + |