diff options
Diffstat (limited to 'uisimulator/win32')
-rw-r--r-- | uisimulator/win32/lcd-win32.c | 15 | ||||
-rw-r--r-- | uisimulator/win32/sound.c | 46 |
2 files changed, 61 insertions, 0 deletions
diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c index a50fbd11f6..8afd025a16 100644 --- a/uisimulator/win32/lcd-win32.c +++ b/uisimulator/win32/lcd-win32.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "uisw32.h" | 22 | #include "uisw32.h" |
23 | #include "lcd.h" | 23 | #include "lcd.h" |
24 | #include "lcd-playersim.h" | 24 | #include "lcd-playersim.h" |
25 | #include "debug.h" | ||
25 | 26 | ||
26 | #if LCD_DEPTH == 16 | 27 | #if LCD_DEPTH == 16 |
27 | unsigned short bitmap[LCD_HEIGHT][LCD_WIDTH]; /* the ui display */ | 28 | unsigned short bitmap[LCD_HEIGHT][LCD_WIDTH]; /* the ui display */ |
@@ -309,3 +310,17 @@ void simlcdinit(void) | |||
309 | #endif | 310 | #endif |
310 | } | 311 | } |
311 | 312 | ||
313 | #ifdef CONFIG_BACKLIGHT | ||
314 | void sim_backlight(int value) | ||
315 | { | ||
316 | DEBUGF("backlight: %s\n", (value > 0) ? "on" : "off"); | ||
317 | } | ||
318 | #endif | ||
319 | |||
320 | #ifdef HAVE_REMOTE_LCD | ||
321 | void sim_remote_backlight(int value) | ||
322 | { | ||
323 | DEBUGF("remote backlight: %s\n", (value > 0) ? "on" : "off"); | ||
324 | } | ||
325 | #endif | ||
326 | |||
diff --git a/uisimulator/win32/sound.c b/uisimulator/win32/sound.c index 02a5a888d9..54140f59e4 100644 --- a/uisimulator/win32/sound.c +++ b/uisimulator/win32/sound.c | |||
@@ -33,6 +33,8 @@ | |||
33 | #include "thread-win32.h" | 33 | #include "thread-win32.h" |
34 | #include "debug.h" | 34 | #include "debug.h" |
35 | 35 | ||
36 | static bool playing = false; | ||
37 | |||
36 | void pcm_play_stop(void); | 38 | void pcm_play_stop(void); |
37 | 39 | ||
38 | static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header, | 40 | static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header, |
@@ -152,4 +154,48 @@ void sound_playback_thread(void) | |||
152 | } | 154 | } |
153 | } | 155 | } |
154 | 156 | ||
157 | |||
158 | /* Stubs for PCM audio playback. */ | ||
159 | bool pcm_is_playing(void) | ||
160 | { | ||
161 | return playing; | ||
162 | } | ||
163 | |||
164 | void pcm_mute(bool state) | ||
165 | { | ||
166 | (void)state; | ||
167 | } | ||
168 | |||
169 | void pcm_play_pause(bool state) | ||
170 | { | ||
171 | (void)state; | ||
172 | } | ||
173 | |||
174 | bool pcm_is_paused(void) | ||
175 | { | ||
176 | return false; | ||
177 | } | ||
178 | |||
179 | void pcm_play_stop(void) | ||
180 | { | ||
181 | playing = false; | ||
182 | } | ||
183 | |||
184 | void pcm_init(void) | ||
185 | { | ||
186 | } | ||
187 | |||
188 | void (*sound_get_pcm)(unsigned char** start, long* size); | ||
189 | void pcm_play_data(void (*get_more)(unsigned char** start, long* size)) | ||
190 | { | ||
191 | sound_get_pcm = get_more; | ||
192 | playing = true; | ||
193 | } | ||
194 | |||
195 | long pcm_get_bytes_waiting(void) | ||
196 | { | ||
197 | return 0; | ||
198 | } | ||
199 | |||
200 | |||
155 | #endif /* ROCKBOX_HAS_SIMSOUND */ | 201 | #endif /* ROCKBOX_HAS_SIMSOUND */ |