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

Wait until audio is ready #102

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Wait until audio is ready #102

merged 1 commit into from
Sep 1, 2023

Conversation

elgopher
Copy link
Owner

@elgopher elgopher commented Sep 1, 2023

Game loop must wait until audio is initialized to avoid desynchronization between graphics and audio.

On the web audio is initialized only after user action (such as clicking the mouse button). Show the "Play" image button to the user in such case.

@elgopher elgopher force-pushed the not-ready branch 4 times, most recently from 4932fe7 to ea6be52 Compare September 1, 2023 17:46
Game loop must wait until audio is initialized to avoid desynchronization between graphics and audio.

On the web audio is initialized only after user action (such as clicking the mouse button). Show the "Play" image button to the user in such case.
@elgopher elgopher marked this pull request as ready for review September 1, 2023 18:20
@elgopher elgopher merged commit 455048b into master Sep 1, 2023
3 checks passed
@elgopher elgopher deleted the not-ready branch September 1, 2023 18:20
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.

1 participant