diff options
-rw-r--r-- | apps/screens.c | 4 | ||||
-rw-r--r-- | firmware/mpeg.h | 2 | ||||
-rw-r--r-- | uisimulator/common/stubs.c | 5 |
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) | |||
166 | pitch++; | 166 | pitch++; |
167 | if ( pitch > 2000 ) | 167 | if ( pitch > 2000 ) |
168 | pitch = 2000; | 168 | pitch = 2000; |
169 | #ifdef HAVE_MAS3587F | ||
170 | mpeg_set_pitch(pitch); | 169 | mpeg_set_pitch(pitch); |
171 | #endif | ||
172 | break; | 170 | break; |
173 | 171 | ||
174 | case BUTTON_DOWN: | 172 | case BUTTON_DOWN: |
@@ -178,9 +176,7 @@ int on_screen(void) | |||
178 | pitch--; | 176 | pitch--; |
179 | if ( pitch < 500 ) | 177 | if ( pitch < 500 ) |
180 | pitch = 500; | 178 | pitch = 500; |
181 | #ifdef HAVE_MAS3587F | ||
182 | mpeg_set_pitch(pitch); | 179 | mpeg_set_pitch(pitch); |
183 | #endif | ||
184 | break; | 180 | break; |
185 | 181 | ||
186 | case BUTTON_ON | BUTTON_PLAY: | 182 | 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); | |||
72 | struct mp3entry* mpeg_current_track(void); | 72 | struct mp3entry* mpeg_current_track(void); |
73 | bool mpeg_has_changed_track(void); | 73 | bool mpeg_has_changed_track(void); |
74 | int mpeg_status(void); | 74 | int mpeg_status(void); |
75 | #ifdef HAVE_MAS3587F | ||
76 | void mpeg_set_pitch(int percent); | 75 | void mpeg_set_pitch(int percent); |
77 | #endif | ||
78 | void mpeg_get_debugdata(struct mpeg_debug *dbgdata); | 76 | void mpeg_get_debugdata(struct mpeg_debug *dbgdata); |
79 | 77 | ||
80 | #define SOUND_VOLUME 0 | 78 | #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 ) | |||
170 | { | 170 | { |
171 | (void)x; | 171 | (void)x; |
172 | } | 172 | } |
173 | |||
174 | void mpeg_set_pitch(int pitch) | ||
175 | { | ||
176 | (void)pitch; | ||
177 | } | ||