Stream audio sources: RefreshAudioSources can stay Loading forever #357

Open
opened 2026-11-12 21:22:09 +00:00 by charles · 0 comments
Owner

Follow-up from review of #356 (Task 50, #340).

UserAction::RefreshAudioSources sets Streams::audio_targets to Loading and sends CaptureCommand::ListAudioTargets. Later refreshes are ignored while it is Loading, as the spec says. If the capture backend never sends CaptureEvent::AudioTargets (it crashes, or a listing error is dropped), the state stays Loading for good and the "Audio sources" submenu can never refresh.

Possible fixes: clear Loading on CaptureEvent::Error, or add a timer that sets it to Unavailable after a few seconds. Either way, Text chat 52 (#342) must always answer ListAudioTargets, even if the listing fails.

Seen on branch textchat-50-core-stream-audio-sources at 1ca0b0f (crates/fluxer-core/src/voice/stream/golive.rs, RefreshAudioSources arm).

Follow-up from review of #356 (Task 50, #340). `UserAction::RefreshAudioSources` sets `Streams::audio_targets` to `Loading` and sends `CaptureCommand::ListAudioTargets`. Later refreshes are ignored while it is `Loading`, as the spec says. If the capture backend never sends `CaptureEvent::AudioTargets` (it crashes, or a listing error is dropped), the state stays `Loading` for good and the "Audio sources" submenu can never refresh. Possible fixes: clear `Loading` on `CaptureEvent::Error`, or add a timer that sets it to `Unavailable` after a few seconds. Either way, Text chat 52 (#342) must always answer `ListAudioTargets`, even if the listing fails. Seen on branch `textchat-50-core-stream-audio-sources` at 1ca0b0f (`crates/fluxer-core/src/voice/stream/golive.rs`, `RefreshAudioSources` arm).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#357
No description provided.