summaryrefslogtreecommitdiffstats
path: root/uisimulator/win32/sound.c
diff options
context:
space:
mode:
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 @@
#include "thread-win32.h"
#include "debug.h"
+static bool playing = false;
+
void pcm_play_stop(void);
static void sound_play_chunk(HWAVEOUT wave_out, LPWAVEHDR header,
@@ -152,4 +154,48 @@ void sound_playback_thread(void)
}
}
+
+/* Stubs for PCM audio playback. */
+bool pcm_is_playing(void)
+{
+ return playing;
+}
+
+void pcm_mute(bool state)
+{
+ (void)state;
+}
+
+void pcm_play_pause(bool state)
+{
+ (void)state;
+}
+
+bool pcm_is_paused(void)
+{
+ return false;
+}
+
+void pcm_play_stop(void)
+{
+ playing = false;
+}
+
+void pcm_init(void)
+{
+}
+
+void (*sound_get_pcm)(unsigned char** start, long* size);
+void pcm_play_data(void (*get_more)(unsigned char** start, long* size))
+{
+ sound_get_pcm = get_more;
+ playing = true;
+}
+
+long pcm_get_bytes_waiting(void)
+{
+ return 0;
+}
+
+
#endif /* ROCKBOX_HAS_SIMSOUND */