feat(audio): headless query_dac_capabilities for the Slint wizard (Slice 2)
Extract the DAC capability assembly out of the Tauri-only `v2_query_dac_capabilities` into `qbz-audio::dac_capabilities` so the Slint wizard can probe a DAC's real supported sample rates + pretty description without a Tauri command. The detection itself already lived in this crate (`PipeWireBackend::get_sink_supported_rates` -> /proc/asound, with the `get_device_supported_rates` ALSA-direct fallback); this just assembles the DTO frontend-agnostically and benefits from the Slice-0 pw-dump-robust enumeration for the description. Formats stay nominal (S16/S24/F32) and are documented as NOT probed — honest port of the prior behavior, not a fake measurement. Pure `assemble` helper + 3 unit tests. Read-only. cc
This commit is contained in:
2 files changed
+107
No files matched your search
@@ -39,6 +39,7 @@ pub mod pulse_backend;
|
||||
pub mod jack_backend;
|
||||
pub mod alsa_direct;
|
||||
pub mod coreaudio_direct;
|
||||
pub mod dac_capabilities;
|
||||
pub mod dac_probe;
|
||||
pub mod analysis;
|
||||
pub mod analyzer_tap;
|
||||
@@ -70,6 +71,7 @@ pub use backend::{
|
||||
BackendManager, BackendResult, BitPerfectMode,
|
||||
};
|
||||
pub use coreaudio_direct::CoreAudioExclusiveGuard;
|
||||
pub use dac_capabilities::{query_dac_capabilities, DacCapabilities};
|
||||
pub use dac_probe::{negotiated_stream_rate, NegotiatedRate};
|
||||
pub use device_reservation::{DeviceReservation, ReservationError};
|
||||
pub use diagnostic::{AudioDiagnostic, BitDepthResult, DiagnosticSource};
|
||||
|
||||
Reference in new issue
Block a user