Skip to content

Ensure AudioManager is prepared #638

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

Merged
merged 2 commits into from
Mar 20, 2025

Conversation

hiroshihorie
Copy link
Member

The lazy initialization of AudioManager was causing inconsistencies in the AudioEngineObserver event lifecycle.
AVAudioNode instances were being connected without being attached, which could lead to crashes.
Ensure that the shared instance of AudioManager is ready whenever any Room object is instantiated.

Related: #636

@hiroshihorie hiroshihorie requested a review from ladvoc March 20, 2025 17:41
Copy link
Contributor

@ladvoc ladvoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I will test this on device

@hiroshihorie hiroshihorie merged commit 50e2464 into main Mar 20, 2025
18 of 20 checks passed
@hiroshihorie hiroshihorie deleted the hiroshi/ensure-audiomanager-prepared branch March 20, 2025 20: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.

2 participants