Suspend the tuner noise context once a pending resume settles

A dial click shorter than the device start-up let suspend() run on a still-suspended context, so the later resume() left it running with no nodes. Cover paused, connecting and voice-fallback releases in radioNextState tests.
This commit is contained in:
German Khokhlov committed 2026-11-03 14:32:55 +04:00
1 parent cfc83a6078
commit 81ffa5b663
5 files changed
+131 -16

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ export function createTuning({ state: layerState, services, parts, source }) {
layerState._playFallbackFocus = null;
layerState._playFallbackOrigin = 'programmatic';
layerState._playFallbackAttemptId = null;
// Static covers only a connecting stream; a silent release frees the noise graph.
// Muting alone would leave the noise graph running after a silent release.
if (autoplay) parts.tuningNoise.syncTuningNoiseGain();
else parts.tuningNoise.clearRadioTuningNoise({ emit: false });
parts.presentation.emitState();