summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-10-18 14:03:11 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-10-18 14:03:11 +0000
commit5cb429ec604325573c0baad4fb56e80fc2b9c48b (patch)
treed40c70a5475fd938f260ba101011510a8e4e1ac2
parentac59dceeea3c9d2fd9b971d19e6dbcc517398aac (diff)
Added mpeg_set_pitch() stub to simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2721 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/screens.c4
-rw-r--r--firmware/mpeg.h2
-rw-r--r--uisimulator/common/stubs.c5
3 files changed, 5 insertions, 6 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 5a912d9d60..ad7865ddad 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -166,9 +166,7 @@ int on_screen(void)
pitch++;
if ( pitch > 2000 )
pitch = 2000;
-#ifdef HAVE_MAS3587F
mpeg_set_pitch(pitch);
-#endif
break;
case BUTTON_DOWN:
@@ -178,9 +176,7 @@ int on_screen(void)
pitch--;
if ( pitch < 500 )
pitch = 500;
-#ifdef HAVE_MAS3587F
mpeg_set_pitch(pitch);
-#endif
break;
case BUTTON_ON | BUTTON_PLAY:
diff --git a/firmware/mpeg.h b/firmware/mpeg.h
index 02c5e814a2..0e92e85db7 100644
--- a/firmware/mpeg.h
+++ b/firmware/mpeg.h
@@ -72,9 +72,7 @@ int mpeg_sound_numdecimals(int setting);
struct mp3entry* mpeg_current_track(void);
bool mpeg_has_changed_track(void);
int mpeg_status(void);
-#ifdef HAVE_MAS3587F
void mpeg_set_pitch(int percent);
-#endif
void mpeg_get_debugdata(struct mpeg_debug *dbgdata);
#define SOUND_VOLUME 0
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index f615d9a4a4..6536706620 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -170,3 +170,8 @@ void lcd_set_contrast( int x )
{
(void)x;
}
+
+void mpeg_set_pitch(int pitch)
+{
+ (void)pitch;
+}