diff options
author | Franklin Wei <git@fwei.tk> | 2018-01-11 19:44:36 -0500 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2018-01-11 19:45:31 -0500 |
commit | ccd612345cb8bb6f28fe1258f2d98e90de63967d (patch) | |
tree | dd892ad21c0418055bfc9a916dabee1e9ebb741c /apps/plugins/sdl/SDL_mixer/mixer.c | |
parent | 0d794c0c06570decf030fae7e42993bc53c5ab57 (diff) | |
download | rockbox-ccd612345cb8bb6f28fe1258f2d98e90de63967d.tar.gz rockbox-ccd612345cb8bb6f28fe1258f2d98e90de63967d.zip |
sdl: fix freeze on startup on PP targets
Using the coprocessor was a good idea in theory, but didn't actually work.
This moves all SDL threads to the main core, which isn't ideal, but at
least works. Additionally, this also adds some good-practice stuff such as
setting the default sample rate on exit.
Change-Id: If1636b33d439000ec7c4e50f46e8d002708d3121
Diffstat (limited to 'apps/plugins/sdl/SDL_mixer/mixer.c')
-rw-r--r-- | apps/plugins/sdl/SDL_mixer/mixer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/sdl/SDL_mixer/mixer.c b/apps/plugins/sdl/SDL_mixer/mixer.c index a24a0e7c1d..32c6c8449f 100644 --- a/apps/plugins/sdl/SDL_mixer/mixer.c +++ b/apps/plugins/sdl/SDL_mixer/mixer.c | |||
@@ -412,7 +412,8 @@ int Mix_OpenAudio(int frequency, Uint16 format, int nchannels, int chunksize) | |||
412 | return(0); | 412 | return(0); |
413 | } | 413 | } |
414 | while ( audio_opened ) { | 414 | while ( audio_opened ) { |
415 | Mix_CloseAudio(); | 415 | Mix_CloseAudio(); |
416 | rb->yield(); | ||
416 | } | 417 | } |
417 | } | 418 | } |
418 | 419 | ||