diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-02 17:43:32 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-02 17:43:32 +0000 |
| commit | 5d849a963e562d1996c20cd72228835276288141 (patch) | |
| tree | 8c96a2524f6c1b6d714506a8d012a9c7ded24918 /apps/recorder | |
| parent | 35bcdef1441519bb66a77b675013309ef39e9eec (diff) | |
| download | rockbox-5d849a963e562d1996c20cd72228835276288141.zip rockbox-5d849a963e562d1996c20cd72228835276288141.tar.gz rockbox-5d849a963e562d1996c20cd72228835276288141.tar.bz2 rockbox-5d849a963e562d1996c20cd72228835276288141.tar.xz | |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index 0221963..6ecb75f 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); |