summaryrefslogtreecommitdiff
path: root/uisimulator/common/stubs.c
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-02-13 21:46:28 +0000
committerDan Everton <dan@iocaine.org>2006-02-13 21:46:28 +0000
commit3ba0060ac1fa1c39596c51d4bf259142e6d1847f (patch)
tree71428db81254a9901fbf3e8a92c71f0f57410cd2 /uisimulator/common/stubs.c
parentdd39e33663a4b617c3f88f48845681e772386a7f (diff)
downloadrockbox-3ba0060ac1fa1c39596c51d4bf259142e6d1847f.tar.gz
rockbox-3ba0060ac1fa1c39596c51d4bf259142e6d1847f.zip
Backlight support for 8-bit targets in SDL sim. Redo sound handling. Still doesn't work right, but is closer to how the actual Rockbox system does it. Move some stub functions in to Win32 and X11 sims to keep them compiling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8686 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common/stubs.c')
-rw-r--r--uisimulator/common/stubs.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index d4862a0f85..b06c812772 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -32,49 +32,6 @@
32#include "ata.h" /* for volume definitions */ 32#include "ata.h" /* for volume definitions */
33 33
34extern char having_new_lcd; 34extern char having_new_lcd;
35static bool playing = false;
36
37/* Stubs for PCM audio playback. */
38bool pcm_is_playing(void)
39{
40 return playing;
41}
42
43void pcm_mute(bool state)
44{
45 (void)state;
46}
47
48void pcm_play_pause(bool state)
49{
50 (void)state;
51}
52
53bool pcm_is_paused(void)
54{
55 return false;
56}
57
58void pcm_play_stop(void)
59{
60 playing = false;
61}
62
63void pcm_init(void)
64{
65}
66
67void (*sound_get_pcm)(unsigned char** start, long* size);
68void pcm_play_data(void (*get_more)(unsigned char** start, long* size))
69{
70 sound_get_pcm = get_more;
71 playing = true;
72}
73
74long pcm_get_bytes_waiting(void)
75{
76 return 0;
77}
78 35
79#if CONFIG_CODEC != SWCODEC 36#if CONFIG_CODEC != SWCODEC
80void audio_set_buffer_margin(int seconds) 37void audio_set_buffer_margin(int seconds)
@@ -83,20 +40,6 @@ void audio_set_buffer_margin(int seconds)
83} 40}
84#endif 41#endif
85 42
86#ifdef CONFIG_BACKLIGHT
87void sim_backlight(int value)
88{
89 DEBUGF("backlight: %s\n", (value > 0) ? "on" : "off");
90}
91#endif
92
93#ifdef HAVE_REMOTE_LCD
94void sim_remote_backlight(int value)
95{
96 DEBUGF("remote backlight: %s\n", (value > 0) ? "on" : "off");
97}
98#endif
99
100int fat_startsector(void) 43int fat_startsector(void)
101{ 44{
102 return 63; 45 return 63;