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

Wii: preload some audio voices #390

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

mardy
Copy link

@mardy mardy commented Nov 16, 2024

This is a draft, both because it's a quick hack (I didn't even bother to check if resources are properly freed), and because I'm not sure that this is the solution we are looking for.

But this fixes the delays on the Wii, when the game pauses just before playing a sound.

I'm not sure I'll have time to work on this soon, but please let me know if you can suggest a better approach, or how to improve this one. Or close it, if you think it's not relevant for other platforms.

@parasti
Copy link
Member

parasti commented Nov 18, 2024

@mardy I see you precached the decoded PCM samples instead of the raw file data. Was decoding necessary to fix the delays on Wii?

@mardy
Copy link
Author

mardy commented Nov 19, 2024

@mardy I see you precached the decoded PCM samples instead of the raw file data. Was decoding necessary to fix the delays on Wii?

Yes, storing in RAM the ogg files didn't lead to any visible improvement. :-(

By the way, there are still some random delays, not as frequent as before, and apparently not related to any game events. Maybe it's the music, I need to investigate that as well.

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

Successfully merging this pull request may close these issues.

2 participants