summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 17:43:32 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-02 17:43:32 +0000
commit5d849a963e562d1996c20cd72228835276288141 (patch)
tree8c96a2524f6c1b6d714506a8d012a9c7ded24918 /apps/recorder
parent35bcdef1441519bb66a77b675013309ef39e9eec (diff)
downloadrockbox-5d849a963e562d1996c20cd72228835276288141.tar.gz
rockbox-5d849a963e562d1996c20cd72228835276288141.tar.bz2
rockbox-5d849a963e562d1996c20cd72228835276288141.zip
Clean up multiple definitions of RAM size. Remove -DMEM (make) and MEM (code), use the already defined MEMORYSIZE instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29189 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/pcm_record.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index 0221963b2b..6ecb75f608 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -131,7 +131,7 @@ static unsigned long pre_record_ticks; /* pre-record time in ticks */
****************************************************************************/
/** buffer parameters where incoming PCM data is placed **/
-#if MEM <= 2
+#if MEMORYSIZE <= 2
#define PCM_NUM_CHUNKS 16 /* Power of 2 */
#else
#define PCM_NUM_CHUNKS 256 /* Power of 2 */
@@ -180,13 +180,13 @@ static int flood_watermark; /* boost thread priority when here */
#ifdef HAVE_PRIORITY_SCHEDULING
#define PRIO_SECONDS 10 /* max flush time before priority boost */
#endif
-#if MEM <= 2
+#if MEMORYSIZE <= 2
/* fractions must be integer fractions of 4 because they are evaluated with
* X*4*XXX_SECONDS, that way we avoid float calculation */
#define LOW_SECONDS 1/4 /* low watermark time till empty */
#define PANIC_SECONDS 1/2 /* flood watermark time until full */
#define FLUSH_SECONDS 1 /* flush watermark time until full */
-#elif MEM <= 16
+#elif MEMORYSIZE <= 16
#define LOW_SECONDS 1 /* low watermark time till empty */
#define PANIC_SECONDS 5 /* flood watermark time until full */
#define FLUSH_SECONDS 7 /* flush watermark time until full */
@@ -194,7 +194,7 @@ static int flood_watermark; /* boost thread priority when here */
#define LOW_SECONDS 1 /* low watermark time till empty */
#define PANIC_SECONDS 8
#define FLUSH_SECONDS 10
-#endif /* MEM */
+#endif /* MEMORYSIZE */
/** encoder events **/
static void (*enc_events_callback)(enum enc_events event, void *data);