If I build snes9x on my iMac 266 (old problem, so it's been like this with many kernel versions) I get distorted sound in all supernintendo games. With the debian version on the other hand, sound works perfectly! Avaliable at ftp://ftp.sunet.se/pub/os/Linux/distributions/debian/pool/non-free/s/snes9x/ install with dpkg-deb -x snes9x-x_1.39-8.0.1_powerpc.deb / dpkg-deb -x snes9x-opengl_1.39-8.0.1_powerpc.deb / dpkg-deb -x snes9x-common_1.39-8_all.deb / Reproducible: Always Steps to Reproduce: 1. emerge snes9x 2a. Turn down your speaker volume! 2b. snes9x FinalFantasy3.smc 3. Listen to the horrible sound Actual Results:
i can't reproduce this, snes9x works fine for me, can you give me some more info ? "emerge info" for example
drop -mpowerpc-gfxopt -fsigned-char from your compilerflags, both can cause packages to break and are removed from the gentoo's make.conf for some time now also you might want to try -O2 instead -O3
Everything on my system is compiled with -mpowerpc-gfxopt -fsigned-char, I have no problems in other programs, and it wasn't removed from the 1.4-rc4 stage tarballs. Just to make sure, I compiled snes9x with no optimisations at all, but I get exactly the same results. It's an old bug, I think it was exactly like this when I ran yellowdog with gcc-2.9x too and with all versions of Mandrake. My computer is an iMac 266 and I'm guessing that it's somehow specific to my soundcard (since it works on your computer!), but on the other hand, the debian packages works..
It's had endian confusion for me. My experiene is that with all games the sound was more than distorted- it was completely scrambled, worse than static. (I'm using an old b&w g3/300 with gcc 3.2 and ALSA, and my CFLAGS include -O2 -mpowerpc-gfxopt -fsigned-char.) I just edited unix/unix.cpp and changed all occurrences of AFMT_S16_LE to AFMT_S16_NE and continued the merge. Most of the time it now works perfectly, but occasionally the sound scrambles itself again. When that happens, it usually goes away if I wait a few seconds or tell it to use its freeze/defrost features. Has anyone else experienced that?
Created attachment 8864 [details, diff] BE sound fixes patch to fix sound
plz test if this patch fixes the issues
Created attachment 8870 [details, diff] A ppc-patch for snes9x Nope, your patch is wrong (you can't remove an if statement just like that!) but after some modification it works great! Played for an hour now, perfect sound all the time. Attached version 2.0
yes you are right, sorry seems i attatched a buggy patch. a fixed ebuild should be in the rsync mirrirs soon