Group :: Games/Other
RPM: nogravity
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: nogravity--snd_sdlmixer_c-powerpc-fix.diff
Download
Download
diff -ru nogravity.orig/rlx32/src/linux/snd_sdlmixer.c nogravity/rlx32/src/linux/snd_sdlmixer.c
--- rlx32/src/linux/snd_sdlmixer.c 2006-05-27 13:04:29.000000000 +0400
+++ rlx32/src/linux/snd_sdlmixer.c 2006-10-01 11:44:25.000000000 +0400
@@ -84,7 +84,11 @@
{
// TODO: Check for failures (generally, not just in this file).
SDL_InitSubSystem(SDL_INIT_AUDIO);
+#ifdef __powerpc__
+ Mix_OpenAudio(44100, AUDIO_S16MSB, 2, 1024);
+#else
Mix_OpenAudio(44100, AUDIO_S16, 2, 1024);
+#endif
Mix_ChannelFinished(ChannelFinished);
return 0;
}