From 77651585134575d81c873d9392366b4bbe6fc18c Mon Sep 17 00:00:00 2001 From: Alexander Levin Date: Sat, 11 Jul 2009 17:16:23 +0000 Subject: Fix red in bootloaders git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21782 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/pitchscreen.h | 5 ----- apps/tdspeed.c | 1 + firmware/export/sound.h | 7 +++++++ firmware/sound.c | 2 -- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/gui/pitchscreen.h b/apps/gui/pitchscreen.h index e421c6559e..41eb1fd415 100644 --- a/apps/gui/pitchscreen.h +++ b/apps/gui/pitchscreen.h @@ -22,11 +22,6 @@ #ifndef _PITCHSCREEN_H_ #define _PITCHSCREEN_H_ -/* precision of the pitch and speed variables */ -/* One zero per decimal (100 means two decimal places */ -#define PITCH_SPEED_PRECISION 100L -#define PITCH_SPEED_100 (100L * PITCH_SPEED_PRECISION) /* 100% speed */ - int gui_syncpitchscreen_run(void); #endif /* _PITCHSCREEN_H_ */ diff --git a/apps/tdspeed.c b/apps/tdspeed.c index cd01099a76..8cb495c08f 100644 --- a/apps/tdspeed.c +++ b/apps/tdspeed.c @@ -24,6 +24,7 @@ #include #include #include +#include "sound.h" #include "buffer.h" #include "system.h" #include "tdspeed.h" diff --git a/firmware/export/sound.h b/firmware/export/sound.h index 674b2f6ae2..3d12a47db3 100644 --- a/firmware/export/sound.h +++ b/firmware/export/sound.h @@ -64,4 +64,11 @@ void sound_set_pitch(int32_t pitch); int32_t sound_get_pitch(void); #endif +#ifdef HAVE_PITCHSCREEN +/* precision of the pitch and speed variables */ +/* One zero per decimal (100 means two decimal places */ +#define PITCH_SPEED_PRECISION 100L +#define PITCH_SPEED_100 (100L * PITCH_SPEED_PRECISION) /* 100% speed */ +#endif /* HAVE_PITCHSCREEN */ + #endif diff --git a/firmware/sound.c b/firmware/sound.c index 6a2f03df00..84ccd2b1bd 100644 --- a/firmware/sound.c +++ b/firmware/sound.c @@ -25,8 +25,6 @@ #include "sound.h" #include "logf.h" #include "system.h" -/* for the pitch and speed precision #defines: */ -#include "pitchscreen.h" #ifndef SIMULATOR #include "i2c.h" #include "mas.h" -- cgit v1.2.3