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
@@ -478,28 +478,55 @@ export component DacWizardModal inherits Rectangle {
|
||||
font-size: Typography.body;
|
||||
wrap: word-wrap;
|
||||
}
|
||||
// The four tracks that will play.
|
||||
// The four tracks — click one to jump straight to it
|
||||
// while testing (no need to wait for each to finish).
|
||||
VerticalLayout {
|
||||
spacing: 6px;
|
||||
for line in root.test-tracks: HorizontalLayout {
|
||||
spacing: 8px;
|
||||
alignment: start;
|
||||
Text {
|
||||
text: "♪";
|
||||
color: Theme.text-muted;
|
||||
font-size: Typography.legal;
|
||||
spacing: 4px;
|
||||
for line[idx] in root.test-tracks: Rectangle {
|
||||
height: 26px;
|
||||
border-radius: Radius.sm;
|
||||
background: (trow.has-hover && DacWizardState.test-playing)
|
||||
? Theme.surface-hover : transparent;
|
||||
HorizontalLayout {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
spacing: 8px;
|
||||
alignment: start;
|
||||
// Fixed glyph slot (width + height) so the
|
||||
// ♪→▶ hover swap can never reflow the row.
|
||||
Text {
|
||||
width: 14px;
|
||||
height: 26px;
|
||||
horizontal-alignment: center;
|
||||
vertical-alignment: center;
|
||||
text: (trow.has-hover && DacWizardState.test-playing) ? "▶" : "♪";
|
||||
color: (trow.has-hover && DacWizardState.test-playing)
|
||||
? Theme.accent : Theme.text-muted;
|
||||
font-size: Typography.legal;
|
||||
}
|
||||
Text {
|
||||
text: line;
|
||||
color: Theme.text-secondary;
|
||||
font-size: Typography.legal;
|
||||
vertical-alignment: center;
|
||||
overflow: elide;
|
||||
horizontal-stretch: 1;
|
||||
}
|
||||
}
|
||||
Text {
|
||||
text: line;
|
||||
color: Theme.text-secondary;
|
||||
font-size: Typography.legal;
|
||||
overflow: elide;
|
||||
trow := TouchArea {
|
||||
mouse-cursor: DacWizardState.test-playing ? pointer : default;
|
||||
clicked => {
|
||||
if (DacWizardState.test-playing) {
|
||||
DacWizardActions.test-play-index(idx);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Play / Stop.
|
||||
// Play / Stop + the "use my own music" escape.
|
||||
HorizontalLayout {
|
||||
alignment: start;
|
||||
spacing: 10px;
|
||||
QbzPrimaryButton {
|
||||
height: 34px;
|
||||
label: DacWizardState.test-playing ? @tr("Stop") : @tr("Play test");
|
||||
@@ -511,6 +538,14 @@ export component DacWizardModal inherits Rectangle {
|
||||
}
|
||||
}
|
||||
}
|
||||
// For users who'd rather verify with their own
|
||||
// queue than the curated tracks.
|
||||
if !DacWizardState.test-playing: SecondaryButton {
|
||||
label: @tr("Use my own music");
|
||||
clicked => {
|
||||
DacWizardActions.verify-own();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Live read-back: requested (honest) + DAC negotiated (N6).
|
||||
if DacWizardState.test-playing || DacWizardState.test-requested-label != "": Rectangle {
|
||||
|
||||
@@ -3925,6 +3925,8 @@ export global DacWizardActions {
|
||||
callback toggle-dac(int); // flip one candidate's checked state
|
||||
callback validate-manual(string);// validate a pasted node.name (escape hatch)
|
||||
callback start-test(); // queue + play the 4 test tracks (Slice 9)
|
||||
callback verify-own(); // start the read-back using the user's own music
|
||||
callback poll-test(); // refresh the requested-vs-negotiated read-back
|
||||
callback test-play-index(int); // jump straight to one of the 4 test tracks
|
||||
callback stop-test();
|
||||
}
|
||||
Reference in new issue
Block a user