Repository navigation
Defer audio engine init to first playSound call - #3684
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (58.69%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #3684 +/- ##
==========================================
- Coverage 74.49% 74.45% -0.04%
==========================================
Files 256 256
Lines 37993 38008 +15
Branches 5118 5118
==========================================
- Hits 28303 28299 -4
- Misses 9690 9709 +19 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hluk
force-pushed
the
lazy-audio-engine
branch
from
August 22, 2026 10:06
224f72e to
5a874e8
Compare
Initialize the miniaudio engine lazily on the first playSound() call instead of at startup. Release the engine once all sounds finish playing. This avoids holding a persistent PulseAudio/PipeWire connection while idle, which caused ~1-2% background CPU from the audio socket dispatch thread and a spurious "playing audio" status in the desktop environment. Assisted-by: Claude (Anthropic)
hluk
force-pushed
the
lazy-audio-engine
branch
from
August 22, 2026 10:31
5a874e8 to
28a8ef8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initialize the miniaudio engine lazily on the first playSound() call instead of at startup. Release the engine once all sounds finish playing.
This avoids holding a persistent PulseAudio/PipeWire connection while idle, which caused ~1-2% background CPU from the audio socket dispatch thread and a spurious "playing audio" status in the desktop environment.
Assisted-by: Claude (Anthropic)