Skip to content

Feature/audio thread - #62

Merged
damacaa merged 7 commits into
mainfrom
feature/audio-thread
Sep 16, 2026
Merged

damacaa merged 7 commits into
mainfrom
feature/audio-thread

Conversation

@damacaa

@damacaa damacaa commented Sep 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

damacaa and others added 7 commits September 14, 2026 15:52
- Use SDL_AudioStreamCallback in SDL_OpenAudioDeviceStream to pull audio asynchronously
- Render PCM and advance procedural music sequencer sample-accurately on the audio thread
- Reduce AudioEngine::listen on the main thread to lightweight state synchronization under a fast mutex
- Prevent audio buffer underruns during main thread stalls like shader compiles and window resizes
- Update documentation in docs/AUDIO.md
…ions

- Guard SdfMusicEngine render and update loops under recursive song mutex

- Synchronize dynamic feedback, track controls, and visualizer snapshot getters

- Replace abrupt voice clears with soft fade-out to prevent pop/crackle artifacts on song change
@damacaa
damacaa merged commit ce3195e into main Sep 16, 2026
4 checks passed
@damacaa
damacaa deleted the feature/audio-thread branch September 16, 2026 18:30
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