Skip to content
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

sound/music stutters when leaving road #137

Open
runout88 opened this issue Feb 17, 2023 · 2 comments
Open

sound/music stutters when leaving road #137

runout88 opened this issue Feb 17, 2023 · 2 comments

Comments

@runout88
Copy link

runout88 commented Feb 17, 2023

the issue is as stated above, sound/music stutters when leaving the road (and also when it bumps into a car, just noticed this)
this only happens at 60FPS and "Frame Rate Original"; HIRES on/off makes no difference
with 30FPS the sound/music does not stutter
ingame fps is 60 without dips (windows 10, intel i7, nvidia graphics, 8gb ram; sampling rate 48kHz same as in xml)
game plays fine otherwise

p.s. the sound also stutters for a second when restarting via parameter change e.g. the "bing" sound you hear when changing scanlines or window scale from the menu, after the screen returns; but this may very well be unrelated and just a side-effect of restarting the engine

@runout88
Copy link
Author

runout88 commented Feb 20, 2023

game also freezes sometimes (just happened the second time) on the high score screen, after I enter initials and hit E(N)D; "menu" button works fine; high score IS stored in the XML
from what i can tell, this only happens only/always in the case of GAME OVER, the game does not freeze if i complete the course
have no idea if related to the original issue

@J1mbo
Copy link

J1mbo commented Dec 23, 2024

This is due to buffer underrun, simply put the system can't keep up. The arcade ran at 31250Hz sample rate but the game is kind of calibrated to run at 44,100Hz.

This can be completely resolved by moving the sound to it's own thread (which is actually how the arcade machine worked, since it had a Z80 dedicated to sound).

The high-score bug is related to the timer fixes - see issue #140 (which contains the fix for that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants