From 35e8b1429a2cdcf6580f6d25890fed9865165d0b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 21 Jun 2010 16:53:00 +0000 Subject: Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/peakmeter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/recorder/peakmeter.c') diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 164b14b15c..9e93638717 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c @@ -18,7 +18,7 @@ * KIND, either express or implied. * ****************************************************************************/ -#ifdef SIMULATOR +#if defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) #include /* sim uses rand for peakmeter simulation */ #endif #include "config.h" @@ -538,7 +538,7 @@ void pm_reset_clipcount(void) void peak_meter_playback(bool playback) { int i; -#ifdef SIMULATOR +#if (CONFIG_PLATFORM & PLATFORM_HOSTED) (void)playback; #elif CONFIG_CODEC == SWCODEC pm_playback = playback; @@ -595,7 +595,7 @@ void peak_meter_peek(void) left = pm_cur_left; right = pm_cur_right; #else -#ifndef SIMULATOR +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) pm_cur_left = left = mas_codec_readreg(pm_src_left); pm_cur_right = right = mas_codec_readreg(pm_src_right); #else -- cgit v1.2.3