Skip to content

Restart RX audio sink when backend stops unexpectedly (#1303)#1305

Merged
ten9876 merged 1 commit into
mainfrom
aetherclaude/issue-1303
Apr 14, 2026
Merged

Restart RX audio sink when backend stops unexpectedly (#1303)#1305
ten9876 merged 1 commit into
mainfrom
aetherclaude/issue-1303

Conversation

@aethersdr-agent

Copy link
Copy Markdown
Contributor

Summary

Fixes #1303

What was changed

Restart RX audio sink when backend stops unexpectedly (#1303)

Files modified

  • src/core/AudioEngine.cpp
 src/core/AudioEngine.cpp | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Generated by AetherClaude (automated agent for AetherSDR)

@aethersdr-agent aethersdr-agent Bot mentioned this pull request Apr 14, 2026
2 tasks
On Windows, WASAPI can silently transition QAudioSink to StoppedState
after idle or sleep/wake. The RX timer guard clause then stops writing
audio with no recovery path, requiring a program restart.

Add a QAudioSink::stateChanged handler in startRxStream() (both Windows
and non-Windows paths) that detects unexpected StoppedState transitions
and restarts the RX stream, mirroring the existing TX-side fix (#1149).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ten9876 ten9876 force-pushed the aetherclaude/issue-1303 branch from 3ad43d1 to ef2b4dc Compare April 14, 2026 03:50
@ten9876 ten9876 marked this pull request as ready for review April 14, 2026 03:50
@ten9876 ten9876 self-requested a review as a code owner April 14, 2026 03:50
@ten9876 ten9876 merged commit 786e77f into main Apr 14, 2026
3 checks passed
@ten9876 ten9876 deleted the aetherclaude/issue-1303 branch April 14, 2026 03:50
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.

Audio Loss After Idle

2 participants