diff --git a/.github/workflows/cpal.yml b/.github/workflows/cpal.yml index 1b8ca62..805d723 100644 --- a/.github/workflows/cpal.yml +++ b/.github/workflows/cpal.yml @@ -145,3 +145,23 @@ jobs: run: | $Env:CPAL_ASIO_DIR = "$Env:GITHUB_WORKSPACE\asio" cargo test --all --all-features --verbose + + macos-test: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Install llvm and clang + run: brew install llvm + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - name: Build beep example + run: cargo build --example beep + - name: Run without features + run: cargo test --all --no-default-features --verbose + - name: Run all features + run: cargo test --all --all-features --verbose diff --git a/src/host/coreaudio/mod.rs b/src/host/coreaudio/mod.rs index 9314169..17af18b 100644 --- a/src/host/coreaudio/mod.rs +++ b/src/host/coreaudio/mod.rs @@ -27,6 +27,8 @@ use std::cell::RefCell; use std::os::raw::c_char; use std::ptr::null; use std::slice; +use std::thread; +use std::time::Duration; use self::coreaudio::audio_unit::{AudioUnit, Scope, Element}; use self::coreaudio::audio_unit::render_callback::{self, data};