From 9edaf37042033c1bdd0260c75a8a4ada4992ef4e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 16 Feb 2005 02:08:17 +0000 Subject: Fixed check for software codec in SOURCES, and ifdefed the plugin itself. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5968 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/SOURCES | 2 +- apps/plugins/mpa2wav.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 6fc20b7b32..9dd042ff31 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES @@ -63,6 +63,6 @@ nim.c alpine_cdc.c #endif -#if SOFTWARECODECS == yes +#if CONFIG_HWCODEC == MASNONE /* software codec platforms */ mpa2wav.c #endif diff --git a/apps/plugins/mpa2wav.c b/apps/plugins/mpa2wav.c index bff7608d98..025cb82dcb 100644 --- a/apps/plugins/mpa2wav.c +++ b/apps/plugins/mpa2wav.c @@ -19,6 +19,9 @@ #include "plugin.h" +#if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) +/* software codec platforms, not for simulator */ + #include typedef struct ao_sample_format { @@ -478,3 +481,4 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) return PLUGIN_OK; } +#endif /* CONFIG_HWCODEC == MASNONE */ -- cgit v1.2.3