diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-02-16 02:08:17 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-16 02:08:17 +0000 |
commit | 9edaf37042033c1bdd0260c75a8a4ada4992ef4e (patch) | |
tree | a52f4d65430c40f316611c902c4b759720dad7a4 /apps/plugins | |
parent | 538e68059a11349dbaa776d51186d83f181d5969 (diff) | |
download | rockbox-9edaf37042033c1bdd0260c75a8a4ada4992ef4e.tar.gz rockbox-9edaf37042033c1bdd0260c75a8a4ada4992ef4e.zip |
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
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/SOURCES | 2 | ||||
-rw-r--r-- | apps/plugins/mpa2wav.c | 4 |
2 files changed, 5 insertions, 1 deletions
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 | |||
63 | alpine_cdc.c | 63 | alpine_cdc.c |
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | #if SOFTWARECODECS == yes | 66 | #if CONFIG_HWCODEC == MASNONE /* software codec platforms */ |
67 | mpa2wav.c | 67 | mpa2wav.c |
68 | #endif | 68 | #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 @@ | |||
19 | 19 | ||
20 | #include "plugin.h" | 20 | #include "plugin.h" |
21 | 21 | ||
22 | #if (CONFIG_HWCODEC == MASNONE) && !defined(SIMULATOR) | ||
23 | /* software codec platforms, not for simulator */ | ||
24 | |||
22 | #include <codecs/libmad/mad.h> | 25 | #include <codecs/libmad/mad.h> |
23 | 26 | ||
24 | typedef struct ao_sample_format { | 27 | typedef struct ao_sample_format { |
@@ -478,3 +481,4 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
478 | 481 | ||
479 | return PLUGIN_OK; | 482 | return PLUGIN_OK; |
480 | } | 483 | } |
484 | #endif /* CONFIG_HWCODEC == MASNONE */ | ||