diff --git a/crates/app/src/notices.rs b/crates/app/src/notices.rs index ca1a58c..d29702a 100644 --- a/crates/app/src/notices.rs +++ b/crates/app/src/notices.rs @@ -109,11 +109,16 @@ pub(crate) fn audio_step( } /// What a *change* in the engine's sound reason does to the notice queue, as a -/// pure step: the death line pushed when a reason arrives, the same line taken -/// back when the reason clears ([`PlaybackSession::audio_disabled_reason`]'s -/// `AUDIO_LOST` and its own re-arm). [`Player::watch_audio`] is the only caller -/// and owns the caching; this owns the queue, so a test can drive both -/// directions without a window and without a device that dies on cue. +/// pure step: the line pushed when a reason arrives, the same line taken back +/// when the reason clears. [`Player::watch_audio`] is the only caller and owns +/// the caching; this owns the queue, so a test can drive both directions without +/// a window and without a device that dies on cue. +/// +/// The reason itself is the engine's to write +/// ([`PlaybackSession::audio_disabled_reason`]): this side never spells its +/// words, so a lost-device reason the engine lane teaches the death path to set +/// needs nothing here -- and a death that sets nothing stays unsaid, which is +/// what the engine side of this defect is. pub(crate) fn audio_change_notice( notices: &mut std::collections::VecDeque, was: Option<&str>, diff --git a/crates/app/src/tests/media.rs b/crates/app/src/tests/media.rs index 01b34fc..8e8b810 100644 --- a/crates/app/src/tests/media.rs +++ b/crates/app/src/tests/media.rs @@ -16,12 +16,11 @@ use crate::ui::preview::{bgra_to_rgba, screenshot_path}; /// them (`notices` is a private module re-exported for the window). use crate::notices::{audio_change_notice, audio_lost_line, audio_tail}; -/// A sound device that dies under a file that is already open says so, and stops -/// saying so when the engine's own re-arm takes. The engine sets its -/// `audio_disabled_reason` to its lost-device word on a death and clears it on a -/// successful reopen, and nothing on this side ever looked at it: the two call -/// sites were the *open* paths, so a mid-session death played on in silence with -/// no message at all. +/// A reason that changes under a session that is already open says so, and stops +/// saying so when it clears. This side is the *reader*: the writer of a reason is +/// the engine's own `audio_disabled_reason`, and the app's two call sites were +/// the *open* paths -- so a reason that arrived mid-session reached no consumer +/// at all and the window played on in silence with nothing said. /// /// Driven through the queue step itself -- [`audio_change_notice`] is the whole /// of what a reason change does to the strip -- because a test cannot make a