summaryrefslogtreecommitdiff
path: root/uisimulator/win32/sound.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/win32/sound.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/win32/sound.c')
-rw-r--r--uisimulator/win32/sound.c46
1 files changed, 46 insertions, 0 deletions
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
36static bool playing = false;
37
36void pcm_play_stop(void); 38void pcm_play_stop(void);
37 39
38static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header, 40static 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. */
159bool pcm_is_playing(void)
160{
161 return playing;
162}
163
164void pcm_mute(bool state)
165{
166 (void)state;
167}
168
169void pcm_play_pause(bool state)
170{
171 (void)state;
172}
173
174bool pcm_is_paused(void)
175{
176 return false;
177}
178
179void pcm_play_stop(void)
180{
181 playing = false;
182}
183
184void pcm_init(void)
185{
186}
187
188void (*sound_get_pcm)(unsigned char** start, long* size);
189void pcm_play_data(void (*get_more)(unsigned char** start, long* size))
190{
191 sound_get_pcm = get_more;
192 playing = true;
193}
194
195long pcm_get_bytes_waiting(void)
196{
197 return 0;
198}
199
200
155#endif /* ROCKBOX_HAS_SIMSOUND */ 201#endif /* ROCKBOX_HAS_SIMSOUND */