Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37834582
en ru br
ALT Linux repos
S:2.00-alt2_37

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


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;
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin