diff options
author | Dave Chapman <dave@dchapman.com> | 2006-01-13 13:38:31 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-01-13 13:38:31 +0000 |
commit | bae4e2acdde5c563249e452d22c4fd58ea7433a4 (patch) | |
tree | c5977000dca32ac1008ad23848d8835c419ec6c0 /uisimulator/sdl/sound.c | |
parent | b855a9aeb68dfa8da6b760cba4e816e71d53b050 (diff) | |
download | rockbox-bae4e2acdde5c563249e452d22c4fd58ea7433a4.tar.gz rockbox-bae4e2acdde5c563249e452d22c4fd58ea7433a4.zip |
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
Diffstat (limited to 'uisimulator/sdl/sound.c')
-rw-r--r-- | uisimulator/sdl/sound.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
88 | //SDL_CloseAudio(); | 88 | //SDL_CloseAudio(); |
89 | } | 89 | } |
90 | 90 | ||
91 | void sound_playback_thread(void) | 91 | int sound_playback_thread(void* p) |
92 | { | 92 | { |
93 | int sndret = sim_sound_init(); | 93 | int sndret = sim_sound_init(); |
94 | unsigned char *buf; | 94 | unsigned char *buf; |
95 | long size; | 95 | long size; |
96 | 96 | ||
97 | (void)p; | ||
98 | |||
97 | while(sndret) | 99 | while(sndret) |
98 | sleep(100000); /* wait forever, can't play sound! */ | 100 | sleep(100000); /* wait forever, can't play sound! */ |
99 | 101 | ||