Skip to content

Remove IdleState restart logic that caused audio silence on Windows (#1405)#1408

Closed
aethersdr-agent[bot] wants to merge 1 commit into
mainfrom
aetherclaude/issue-1405
Closed

Remove IdleState restart logic that caused audio silence on Windows (#1405)#1408
aethersdr-agent[bot] wants to merge 1 commit into
mainfrom
aetherclaude/issue-1405

Conversation

@aethersdr-agent

Copy link
Copy Markdown
Contributor

Summary

Fixes #1405

What was changed

Remove IdleState restart logic that caused audio silence on Windows (#1405)

Files modified

  • src/core/AudioEngine.cpp
 src/core/AudioEngine.cpp | 35 ++++++-----------------------------
 1 file changed, 6 insertions(+), 29 deletions(-)

Generated by AetherClaude (automated agent for AetherSDR)

…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>
@aethersdr-agent aethersdr-agent Bot mentioned this pull request Apr 14, 2026
2 tasks
@ten9876

ten9876 commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Taking via rebased branch.

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