From 769925541a0c75a261ab8527afde3211e35a7698 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Sun, 5 Mar 2006 19:46:33 +0000 Subject: [PATCH] sound_set_pitch is not available on Player git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8916 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 4 +++- apps/plugin.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/plugin.c b/apps/plugin.c index c26d06dd07..ac1825180e 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -311,8 +311,10 @@ static const struct plugin_api rockbox_api = { #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) mpeg_get_last_header, #endif - +#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \ + (CONFIG_CODEC == SWCODEC) sound_set_pitch, +#endif #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) /* MAS communication */ diff --git a/apps/plugin.h b/apps/plugin.h index c0ae6c69d1..be8b01c0a9 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -365,8 +365,10 @@ struct plugin_api { #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC) unsigned long (*mpeg_get_last_header)(void); #endif - +#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) || \ + (CONFIG_CODEC == SWCODEC) void (*sound_set_pitch)(int pitch); +#endif /* MAS communication */ #if !defined(SIMULATOR) && (CONFIG_CODEC != SWCODEC)