Fixed PPC big-endian sound issues.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2644 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2013-03-01 14:03:12 +00:00
parent e823ffe03f
commit 63a598fb7f
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,9 @@
* Fixed typo in TIA HMOVE writes, thanks to Thomas Jentzsch. This fixes
the constant collision issues in "Kool-Aid Man".
* Fixed sound issues on OSX PPC machines (all sound was in little-endian
format, but PPC is big-endian).
-Have fun!

View File

@ -51,7 +51,7 @@ SoundSDL::SoundSDL(OSystem* osystem)
// whereby sound stopped working after the first video change
SDL_AudioSpec desired;
desired.freq = myOSystem->settings().getInt("freq");
desired.format = AUDIO_S16;
desired.format = AUDIO_S16SYS;
desired.channels = 2;
desired.samples = myOSystem->settings().getInt("fragsize");
desired.callback = callback;