Memory size checks in .c/.h files should use MEM, not MEMORYSIZE
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10557 a1c6a512-1295-4272-9138-f99709370657
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index eb8b2a3..b18d411 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -740,7 +740,7 @@
{
pcmbuf_boost(true);
/* Pre-buffer 1s. */
-#if MEMORYSIZE <= 1
+#if MEM <= 1
if (!LOW_DATA(1))
#else
if (!LOW_DATA(4))
diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h
index 18a6894..b5035f4 100644
--- a/apps/pcmbuf.h
+++ b/apps/pcmbuf.h
@@ -19,7 +19,7 @@
#ifndef PCMBUF_H
#define PCMBUF_H
-#if MEMORYSIZE > 1
+#if MEM > 1
#define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks
on the pcm buffer */
#define PCMBUF_MINAVG_CHUNK 24576 /* This is the minimum average size of
diff --git a/apps/playback.c b/apps/playback.c
index 04f67ef..890a2d7 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -136,7 +136,7 @@
};
/* As defined in plugins/lib/xxx2wav.h */
-#if MEMORYSIZE > 1
+#if MEM > 1
#define MALLOC_BUFSIZE (512*1024)
#define GUARD_BUFSIZE (32*1024)
#else
@@ -2935,14 +2935,14 @@
size_t size;
bool was_playing = (playing && audio_is_initialized);
size_t offset = 0;
-#if MEMORYSIZE > 1
+#if MEM > 1
int seconds = 1;
#endif
if (!filebuf)
return; /* Audio buffers not yet set up */
-#if MEMORYSIZE > 1
+#if MEM > 1
if (enable)
seconds = global_settings.crossfade_fade_out_delay
+ global_settings.crossfade_fade_out_duration;
diff --git a/apps/playback.h b/apps/playback.h
index 98e0784..7144974 100644
--- a/apps/playback.h
+++ b/apps/playback.h
@@ -33,7 +33,7 @@
/* Not yet implemented. */
#define CODEC_SET_AUDIOBUF_WATERMARK 4
-#if MEMORYSIZE > 1
+#if MEM > 1
#define MAX_TRACK 32
#else
#define MAX_TRACK 8
diff --git a/apps/settings.c b/apps/settings.c
index 87789bc..0901095 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -269,7 +269,7 @@
"idle poweroff", "off,1,2,3,4,5,6,7,8,9,10,15,30,45,60" },
{18, S_O(runtime), 0, NULL, NULL },
{18, S_O(topruntime), 0, NULL, NULL },
-#if MEMORYSIZE > 1
+#if MEM > 1
{15, S_O(max_files_in_playlist), 10000,
"max files in playlist", NULL }, /* 1000...20000 */
{14, S_O(max_files_in_dir), 400,