diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 458a61d..93f36b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,9 @@ jobs: - uses: actions/checkout@v4 - if: matrix.os == 'linux' name: Install dependencies - run: sudo apt-get install libasound2-dev + run: | + sudo apt-get update + sudo apt-get install libasound2-dev - name: Fetch Cmajor run: | scripts/fetch-cmajor.py ${{ matrix.cmajor_version }} ${{ matrix.os }} ${{ matrix.arch }} diff --git a/Cargo.toml b/Cargo.toml index 7dbb853..e9e06f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ smallvec = { version = "1.11.1", features = ["serde"] } thiserror = "2.0.3" [dev-dependencies] -cpal = "0.16.0" +cpal = "0.17.3" assert_no_alloc = "1.1.2" [build-dependencies] diff --git a/examples/hello_world.rs b/examples/hello_world.rs index cbc8a2d..533739d 100644 --- a/examples/hello_world.rs +++ b/examples/hello_world.rs @@ -81,7 +81,7 @@ fn main() -> Result<(), Box> { .build_output_stream( &cpal::StreamConfig { channels: 1, - sample_rate: cpal::SampleRate(SAMPLE_RATE as u32), + sample_rate: SAMPLE_RATE as u32, buffer_size: cpal::BufferSize::Fixed(BLOCK_SIZE), }, move |data: &mut [f32], _: &cpal::OutputCallbackInfo| {