Release the tuner noise graph after a silent dial release

A release that only selects a station now stops the looping noise source and suspends its AudioContext. The qa-radio dial scenarios start from an active stream, or expect a silent release from a stopped Radio.
This commit is contained in:
German Khokhlov committed 2026-11-02 17:19:53 +04:00
1 parent 857b007fb1
commit cfc83a6078
3 files changed
+62 -3

No files matched your search

+3 -1
View File
@@ -214,7 +214,9 @@ export function createTuning({ state: layerState, services, parts, source }) {
layerState._playFallbackFocus = null;
layerState._playFallbackOrigin = 'programmatic';
layerState._playFallbackAttemptId = null;
parts.tuningNoise.syncTuningNoiseGain();
// Static covers only a connecting stream; a silent release frees the noise graph.
if (autoplay) parts.tuningNoise.syncTuningNoiseGain();
else parts.tuningNoise.clearRadioTuningNoise({ emit: false });
parts.presentation.emitState();
const selected = parts.selection.selectRadioStation(frozenStation.id, {
autoplay,