Skip to content

Commit

Permalink
run github workflow on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
vyalovvldmr committed Jan 5, 2025
1 parent b6fbde7 commit e13a67f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
build:

runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<f32>::new(latency_samples * 2);
Expand Down

0 comments on commit e13a67f

Please sign in to comment.