From e13a67fee99b76106599fbda6e244d5f9e83cfae Mon Sep 17 00:00:00 2001 From: Vladimir Vialov Date: Sun, 5 Jan 2025 12:54:31 +0100 Subject: [PATCH] run github workflow on macos --- .github/workflows/rust.yml | 2 +- src/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9fd45e0..ef76465 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,7 +12,7 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v4 diff --git a/src/main.rs b/src/main.rs index eb7032c..b20b570 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,6 +73,7 @@ fn main() -> anyhow::Result<()> { let output_device = find_output_device(&args.output_device, &host).context("failed to find output device")?; let config: cpal::StreamConfig = input_device.default_input_config()?.into(); + debug!("input device config {:#?}", &config); let latency_frames = (LATENCY.as_millis() as f32 / 1_000.0) * config.sample_rate.0 as f32; let latency_samples = latency_frames as usize * config.channels as usize; let ring = HeapRb::::new(latency_samples * 2);