Skip to content

Remove IdleState restart logic that caused audio silence on Windows#1419

Merged
ten9876 merged 1 commit into
mainfrom
fix-idle-audio-loop
Apr 14, 2026
Merged

Remove IdleState restart logic that caused audio silence on Windows#1419
ten9876 merged 1 commit into
mainfrom
fix-idle-audio-loop

Conversation

@ten9876

@ten9876 ten9876 commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove IdleState handler from both audio sink paths — normal WASAPI operation includes brief idle periods between buffer fills, triggering a restart loop
  • Zombie sink watchdog (bytesFree stuck at 0 for 2s) already covers stale WASAPI sessions

Fixes #1405. From AetherClaude PR #1408.

🤖 Generated with Claude Code

…1405)

The IdleState handler added in #1376 for stale WASAPI session recovery
was triggering a continuous stop/start loop during normal playback on
Windows. In Qt6 push-mode QAudioSink, IdleState fires whenever the
internal buffer drains between write ticks — this is normal behavior,
not an error. The handler misidentified it as a stale session and
restarted the sink, preventing audio from ever playing.

The existing zombie sink watchdog (bytesFree() stuck at 0 for ~2s)
already covers the original #1361 idle/screensaver recovery scenario.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ten9876 ten9876 merged commit 68548ae into main Apr 14, 2026
3 checks passed
@ten9876 ten9876 deleted the fix-idle-audio-loop branch April 14, 2026 22:39
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 audio in PC Audio V0.8.12.2

2 participants