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

Audio emulation out of sync #170

Open
clbr opened this issue Nov 2, 2020 · 0 comments
Open

Audio emulation out of sync #170

clbr opened this issue Nov 2, 2020 · 0 comments

Comments

@clbr
Copy link
Contributor

clbr commented Nov 2, 2020

  1. App submits a large audio buffer, several seconds+
  2. cen64 plays it realtime, and immediately requests more, even though emulation is otherwise at 26fps

This leads to the app getting the audio interrupt way early, affecting its behavior.

Two solutions:

  1. Slow down the playback to match emulation speed
  2. Play at realtime, but wait with silence, and only request more when it's time to do so

I do realize the current behavior may make commercial games sound better, if they manage to play skipless music despite being 20fps otherwise, but it's an inaccurate hack. If someone cares, it could be kept under some -gamehacks option.

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

1 participant