Skip to content

fix(ios): failed engine restart - #1221

Draft
closetcaiman wants to merge 8 commits into
mainfrom
fix/ios-failed-engine-restart
Draft

fix(ios): failed engine restart#1221
closetcaiman wants to merge 8 commits into
mainfrom
fix/ios-failed-engine-restart

Conversation

@closetcaiman

@closetcaiman closetcaiman commented Aug 11, 2026

Copy link
Copy Markdown
Member

Closes #1209

⚠️ Breaking changes ⚠️

  • N/A

Introduced changes

  • fixed rebuildAudioEngineAndResumeIfNeeded path that caused a state mismatch (reported running when refused by OS) and an eventual dead engine
    • removed mutual recursion blocked by a flag
  • added a bounded backoff retry mechanism that tries to revive the engine when OS refuses or is deferred

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web
  • Updated old arch android spec file

@closetcaiman closetcaiman changed the title Fix/ios failed engine restart fix: ios failed engine restart Aug 11, 2026
@closetcaiman closetcaiman changed the title fix: ios failed engine restart fix(ios): failed engine restart Aug 11, 2026
@closetcaiman closetcaiman added the fix Code changes specifically addressing and resolving a bug label Aug 11, 2026
@closetcaiman
closetcaiman marked this pull request as ready for review August 12, 2026 12:45
@closetcaiman
closetcaiman requested a review from mdydek August 12, 2026 12:45
@closetcaiman
closetcaiman marked this pull request as draft August 13, 2026 10:15

@mdydek mdydek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add event to js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Code changes specifically addressing and resolving a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: failed engine restart after AVAudioEngineConfigurationChangeNotification is silently dropped, audio dead until manual rebuild

2 participants