Fix: CPAL version mismatch

This commit is contained in:
2026-02-02 18:08:55 +01:00
parent 7c14ce7634
commit f1902e18d3
3 changed files with 3 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
### Fixed ### Fixed
- Scope/spectrum ratio asymmetry in Left/Right layout modes. - Scope/spectrum ratio asymmetry in Left/Right layout modes.
- Updated `cpal` dependency from 0.15 to 0.17 to fix type mismatch with `doux` audio backend.
## [0.0.3] - 2026-02-02 ## [0.0.3] - 2026-02-02

View File

@@ -53,7 +53,7 @@ doux = { git = "https://github.com/sova-org/doux", features = ["native"] }
rusty_link = "0.4" rusty_link = "0.4"
ratatui = "0.30" ratatui = "0.30"
crossterm = "0.29" crossterm = "0.29"
cpal = "0.15" cpal = "0.17"
clap = { version = "4", features = ["derive"] } clap = { version = "4", features = ["derive"] }
rand = "0.8" rand = "0.8"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }

View File

@@ -257,7 +257,7 @@ pub fn build_stream(
}; };
let default_config = device.default_output_config().map_err(|e| e.to_string())?; let default_config = device.default_output_config().map_err(|e| e.to_string())?;
let sample_rate = default_config.sample_rate().0 as f32; let sample_rate = default_config.sample_rate() as f32;
let buffer_size = if config.buffer_size > 0 { let buffer_size = if config.buffer_size > 0 {
cpal::BufferSize::Fixed(config.buffer_size) cpal::BufferSize::Fixed(config.buffer_size)