From 76b132629e7a61ff749409cc2a7030fcbf6f2971 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Thu, 11 May 2006 23:06:42 +0000 Subject: Fix red sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9917 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/recorder/recording.c') diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 854e979ade..f6ce9bc872 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -577,7 +577,7 @@ bool recording_screen(void) #endif talk_buffer_steal(); /* will use the mp3 buffer */ -#ifdef HAVE_SPDIF_POWER +#if defined(HAVE_SPDIF_POWER) && !defined(SIMULATOR) /* Tell recording whether we want S/PDIF power enabled at all times */ audio_set_spdif_power_setting(global_settings.spdif_enable); #endif @@ -1266,14 +1266,14 @@ bool recording_screen(void) } } /* Can't measure S/PDIF sample rate on Archos yet */ -#if CONFIG_CODEC != MAS3587F && defined(HAVE_SPDIF_IN) +#if CONFIG_CODEC != MAS3587F && defined(HAVE_SPDIF_IN) && !defined(SIMULATOR) if (global_settings.rec_source == SOURCE_SPDIF) snprintf(spdif_sfreq, 8, "%dHz", audio_get_spdif_sample_rate()); #else (void)spdif_sfreq; #endif snprintf(buf, 32, "%s %s", -#if CONFIG_CODEC != MAS3587F && defined(HAVE_SPDIF_IN) +#if CONFIG_CODEC != MAS3587F && defined(HAVE_SPDIF_IN) && !defined(SIMULATOR) global_settings.rec_source == SOURCE_SPDIF ? spdif_sfreq : #endif -- cgit v1.2.3