-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinity loop in spcProcessStream #226
Comments
It appears to be unrelated to the background music and happens also if only sound effects are compiled in and not background music. |
The first time I run |
I think it is a memory issue when the brr file is too large. I need to check but I need time... |
I took a look at #164. Most likely a duplicate of it. |
I propose the following workaround to be implemented in pvsneslib until the actual issue is fixed:
This will probably create sound glitches every now and then by prevents the game from freezing. |
well, i don't know. I think it is better to try to find and fix the bug. |
Unfortunately, this issue appears only sporadically. That is why I assume a timing issue. |
Maybe the memory issue is related to the observation that the first time a sound is played in PAL mode it is always distorted. |
I experience sporadic infinity loops in spcProcessStream using pvsneslib c414bcd.
The issue occurs in
snesmodwla.asm
line 1136 and 1209 when it waits for the write to the audio IO to complete.I have also experience this issue in 862adbf for
snesmodwla.asm
line 1209.The issue occurs for Bomb'n'Break when built with audio support (
make HAS_BGM=1 HAS_SFX=1
).Please find attached here a version with the audio files from pvsneslib: audio-files.zip, binaries.zip
Changing the audio files does not make any difference.
Here is a screenshot of an error case taken with BSNES plus 05 x64:
The loop does not complete.
The issue could also be observed in snes9x 1.62.3.
Any advice on how to analyze this issue is highly appreciated.
The text was updated successfully, but these errors were encountered: