diff --git a/.github/workflows/build-qt-linux.yml b/.github/workflows/build-qt-linux.yml index 172cbc302..88595421b 100644 --- a/.github/workflows/build-qt-linux.yml +++ b/.github/workflows/build-qt-linux.yml @@ -145,7 +145,14 @@ jobs: # Keep symbols in this build: the unstripped copy is archived for # crash symbolication, then stripped for every shipped artifact. CARGO_PROFILE_RELEASE_STRIP: "none" + # EXPLICIT qmake, as the macOS/Windows recipes do. On the arm64 + # runner cxx-qt-build failed with "Could not find Qt installation: + # QtMissing" although QT_ROOT_DIR was correct (2026-08-29 run) — + # the PATH lookup is not something to rely on across hosts. + QMAKE: ${{ env.QT_ROOT_DIR }}/bin/qmake + CMAKE_PREFIX_PATH: ${{ env.QT_ROOT_DIR }} run: | + "$QMAKE" -query QT_VERSION cargo build --release --manifest-path crates/Cargo.toml -p qbz-qt cp crates/target/release/qbz qbz-unstripped strip -o qbz crates/target/release/qbz diff --git a/crates/qbz-player/src/player/mod.rs b/crates/qbz-player/src/player/mod.rs index 00f08fa38..a435fb8d5 100644 --- a/crates/qbz-player/src/player/mod.rs +++ b/crates/qbz-player/src/player/mod.rs @@ -620,6 +620,10 @@ impl StreamType { fn output_sample_rate(&self) -> u32 { match self { StreamType::Rodio { sink, .. } => sink.config().sample_rate().get(), + // `Direct` is deliberately not cfg-gated (see the enum), so this + // macOS-only match must name it: a direct sink reports the rate it + // was opened at. Without this arm the macOS build does not compile. + StreamType::Direct(sink) => sink.sample_rate(), } } }