notaz / pcsx_rearmed

ARM optimized PCSX fork
GNU General Public License v2.0
384 stars 207 forks source link

Ps1 audio slowdown, stutter and slowdown eg tomba 2 #253

Closed CloudTF25 closed 1 year ago

CloudTF25 commented 2 years ago

So when you play the first level and allow the music to change to a different track after a minute. The new track will stutter and slowdown

ps: i'm using thepsxonpsp660.bin and a clean dump of the game in CHD format.

video below shows the issue in action

https://user-images.githubusercontent.com/67326185/173455293-de14fbdb-1c10-460a-9324-b41a14cb86e8.mp4

This same issue happens excantly the same on my raspberry pi 4, so it definitely isn't a issue with my miyoo mini that runs on the same core

schmurtzm commented 1 year ago

I confirm the behavior (on freshly compiled Retroarch and PCSX Rearmed core) : when the song change a lot of sound stuttering but framerate seems to stay good. Same behavior on PCSX Rearmed standalone (better framerate globally but still a lot of sound stuttering after the first song).

Seems to be a problem with XA decoding.

schmurtzm commented 1 year ago

Same result with Retroarch on Windows. So it's not a lack of power from the Miyoo Mini. On real PS1 and on others PSX cores it's always the same first track which is played (we when arrive at the end, the same track start again). With pcsx, it starts another track with a lot of stuttering. It's like if it tries to play a wrong track.

If we force the game to change track (when entering in a house for example) we go back to the first track and the sound is normal once again, one minute later it try to switch to next track again and stuttering comes back.

schmurtzm commented 1 year ago

Seems to works better now ! Now the first audio track restart at the end. Thanks @notaz !