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

Fix sound effects not working #22053

Merged
merged 1 commit into from
May 18, 2024
Merged

Conversation

AaronVanGeffen
Copy link
Member

The object repository used to be initialised before Audio::Init. However, as of #21893, it is invoked before the object repository is ready.

My solution is to still call Audio::Init in its old place, but to invoke Audo::LoadAudioObjects only after the object repository is ready. This returns behaviour back to normal.

Fixes #22051
Fixes #22052

@Gymnasiast Gymnasiast added this to the v0.4.12 milestone May 17, 2024
@Gymnasiast
Copy link
Member

Test note (to myself or another team/QA member): make sure to also test with play_intro on.

@AaronVanGeffen
Copy link
Member Author

Can confirm sound plays properly during the intro again as well.

@AaronVanGeffen AaronVanGeffen added the regression An issue that was made since the last release. label May 18, 2024
@Gymnasiast Gymnasiast removed the regression An issue that was made since the last release. label May 18, 2024
@Gymnasiast Gymnasiast merged commit 4e2f546 into OpenRCT2:develop May 18, 2024
22 checks passed
@AaronVanGeffen AaronVanGeffen deleted the fix/22051 branch May 18, 2024 11:12
@KyuuGryphon
Copy link

Can confirm sound's working again here, too. Thanks! ^^

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.

No Ambient Park/Guest Noise; Only Ride Songs no ingame sound since 8b51112
3 participants