From bae4e2acdde5c563249e452d22c4fd58ea7433a4 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Fri, 13 Jan 2006 13:38:31 +0000 Subject: Use SDL's thread wrappers instead of pthreads to increase portability in the SDL sim. Patch by Andrew Pilley with some changes by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8347 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/sound.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'uisimulator/sdl/sound.c') diff --git a/uisimulator/sdl/sound.c b/uisimulator/sdl/sound.c index 6068fb3863..388b188448 100644 --- a/uisimulator/sdl/sound.c +++ b/uisimulator/sdl/sound.c @@ -88,12 +88,14 @@ int sim_sound_init(void) //SDL_CloseAudio(); } -void sound_playback_thread(void) +int sound_playback_thread(void* p) { int sndret = sim_sound_init(); unsigned char *buf; long size; + (void)p; + while(sndret) sleep(100000); /* wait forever, can't play sound! */ -- cgit v1.2.3