summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-04-25 08:59:19 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-04-25 08:59:19 +0000
commitef73c2ed360e57a54ea035442453dbc27b174147 (patch)
tree27f408b6a2364c88dbbe80ea429e72fc32e07436
parent78c829f5766709b6b1cffa7ee24710d73cc3ac72 (diff)
downloadrockbox-ef73c2ed360e57a54ea035442453dbc27b174147.zip
rockbox-ef73c2ed360e57a54ea035442453dbc27b174147.tar.gz
rockbox-ef73c2ed360e57a54ea035442453dbc27b174147.tar.bz2
rockbox-ef73c2ed360e57a54ea035442453dbc27b174147.tar.xz
Even more correct conditions for mpeg_get_last_header()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6343 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugin.c4
-rw-r--r--apps/plugin.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index c1c561c..ad9c6a9 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -226,8 +226,10 @@ static const struct plugin_api rockbox_api = {
audio_current_track,
audio_flush_and_reload_tracks,
audio_get_file_pos,
-#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
+#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE)
mpeg_get_last_header,
+#endif
+#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
sound_set_pitch,
#endif
diff --git a/apps/plugin.h b/apps/plugin.h
index 5ffde6b..a513183 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -271,8 +271,10 @@ struct plugin_api {
struct mp3entry* (*audio_current_track)(void);
void (*audio_flush_and_reload_tracks)(void);
int (*audio_get_file_pos)(void);
-#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
+#if !defined(SIMULATOR) && (CONFIG_HWCODEC != MASNONE)
unsigned long (*mpeg_get_last_header)(void);
+#endif
+#if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F)
void (*sound_set_pitch)(int pitch);
#endif