fix(slint): HiFi wizard test step — audio, bit-perfect read-back, track jump, UX
Fixes from owner testing of the Slice 9 playback test: - No audio: removed the incomplete reinit_device(node) that routed output to the selected DAC (the proper switch is set_output_device -> reload_settings -> reinit; doing it half-way broke playback). The test now plays through the current output; route QBZ to the DAC under test in Settings > Audio. - Bit-perfect read-back: dropped the pw-top panel (batch snapshot never reflected the live nodes) and enriched the N6 read-back to show the DAC's real /proc/asound hw_params — rate + ALSA container format (S32_LE etc.) + channels. That container format is the bit-perfect proof. Probe scans for the actively playing card, so it's DAC-agnostic (answers the multi-DAC case: one output at a time). - Track jump: clicking a test row now re-sets the queue at that index via the working play_tracks path (play_index alone only moved the pointer). Resolved tracks are stashed for this. - "Use my own music" button: starts the read-back + resumes the user's own queue for those who don't want the curated tracks. - Row hover no longer changes the row height (fixed-size glyph slot; the ♪->▶ swap can't reflow what's below). cc
This commit is contained in:
6 files changed
+129
-55
No files matched your search
@@ -125,6 +125,22 @@ pub fn negotiated_stream_rate(node_name: &str) -> Option<NegotiatedRate> {
|
||||
read_hw_params_for_card(card)
|
||||
}
|
||||
|
||||
/// The negotiated rate of whichever ALSA card is ACTIVELY playing right now.
|
||||
///
|
||||
/// Scans every card's playback substream and returns the first one that is
|
||||
/// open (not `closed`). This is DAC-agnostic — it reports the rate of whatever
|
||||
/// QBZ is currently outputting to, so it works no matter which (or how many)
|
||||
/// DACs the user selected; you can only play through one output at a time.
|
||||
/// `None` = nothing is playing. Read-only; safe to poll.
|
||||
pub fn negotiated_active_rate() -> Option<NegotiatedRate> {
|
||||
for card in 0..16 {
|
||||
if let Some(nr) = read_hw_params_for_card(card) {
|
||||
return Some(nr);
|
||||
}
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
@@ -73,7 +73,7 @@ pub use backend::{
|
||||
};
|
||||
pub use coreaudio_direct::CoreAudioExclusiveGuard;
|
||||
pub use dac_capabilities::{query_dac_capabilities, DacCapabilities};
|
||||
pub use dac_probe::{negotiated_stream_rate, NegotiatedRate};
|
||||
pub use dac_probe::{negotiated_active_rate, negotiated_stream_rate, NegotiatedRate};
|
||||
pub use health::{
|
||||
audio_stack_health, detect_distro, detect_init, detect_sandbox, AudioStackHealth, Distro,
|
||||
InitSystem, Sandbox,
|
||||
|
||||
Reference in new issue
Block a user