libretro / snes9x2010

Snes9x 2010. Port of Snes9x 1.52+ to Libretro (previously called SNES9x Next). Rewritten in C and several optimizations and speedhacks.
Other
99 stars 71 forks source link

Audio broken after battles in Final Fantasy 3/6 #38

Closed vanfanel closed 9 years ago

vanfanel commented 9 years ago

If you enter Narshe mines just at the game's beggining and win some battles, you can easily notice music gets broken: out of tempo, wrong samples being played. Eventually the music becomes totally cacophonic. It's not a host slowdown problem, but an actual SPU emulation problem. Snes9x core (non-next one) doesn't show this issue. Tested on X86 and ARM. Happens in both architectures.

inactive123 commented 9 years ago

Post a savestate and list the exact ROM version and name.

vanfanel commented 9 years ago

As per RetroArch info:

RetroArch: rarch_log_libretro: [libretro INFO] :: "FINAL FANTASY 3" [checksum ok] HiROM, 32Mbits, ROM+RAM+BAT, NTSC, SRAM:64Kbits, ID:F6 , CRC32:A27F1C7A

And the savestate is here:

https://www.dropbox.com/s/qxv9f0bqt35527o/ff6.state1?dl=0

inactive123 commented 9 years ago

On first evidence this looks like a GCC bug since it doesn't happen with OSX Clang. Another reason why it seems to be that way is because rolling back to a pre-2012 snapshot didnt' help and I'm pretty 100% certain this issue was not there at that specific point in time.

I'll investigate further and try to track down at which specific GCC version this started to happen. Any help here by other people who are willing to test with random GCC versions is welcome.

inactive123 commented 9 years ago

We fixed this issue:

https://github.com/libretro/snes9x-next/commit/a0bf0ca6d3db92274aa1622e44ba7f26f3706671

Please confirm that this fixed things for you as well.

vanfanel commented 9 years ago

Things work great on the ARM Linux front here! On Odroid U3 and Cubieboard 2 no more sound problems in FF6 seems to be left! :+1: Can be closed now :)