cpal 0.11.0

Low-level cross-platform audio I/O library in pure Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;

const CPAL_ASIO_DIR: &'static str = "CPAL_ASIO_DIR";

fn main() {
    // If ASIO directory isn't set silently return early 
    // otherwise set the asio config flag
    match env::var(CPAL_ASIO_DIR) {
        Err(_) => return,
        Ok(_) => println!("cargo:rustc-cfg=asio"),
    };
}