[[example]]
crate-type = ["cdylib"]
name = "android"
path = "examples/android.rs"
[[example]]
name = "beep"
[[example]]
name = "enumerate"
[[example]]
name = "feedback"
[[example]]
name = "record_wav"
[[example]]
name = "synth_tones"
[dependencies.thiserror]
version = "1.0.2"
[dev-dependencies.anyhow]
version = "1.0.12"
[dev-dependencies.clap]
default-features = false
features = ["std"]
version = "3.1"
[dev-dependencies.hound]
version = "3.4"
[dev-dependencies.ringbuf]
version = "0.2"
[features]
asio = ["asio-sys", "num-traits"]
[package]
authors = ["The CPAL contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Low-level cross-platform audio I/O library in pure Rust."
documentation = "https://docs.rs/cpal"
edition = "2021"
keywords = ["audio", "sound"]
license = "Apache-2.0"
name = "cpal"
readme = "README.md"
repository = "https://github.com/rustaudio/cpal"
version = "0.14.2"
[target."cfg(all(target_arch = \"wasm32\", target_os = \"unknown\"))".dependencies.js-sys]
version = "0.3.35"
[target."cfg(all(target_arch = \"wasm32\", target_os = \"unknown\"))".dependencies.wasm-bindgen]
optional = true
version = "0.2.58"
[target."cfg(all(target_arch = \"wasm32\", target_os = \"unknown\"))".dependencies.web-sys]
features = ["AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"]
version = "0.3.35"
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\"))".dependencies.alsa]
version = "0.6"
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\"))".dependencies.jack]
optional = true
version = "0.9"
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\"))".dependencies.libc]
version = "0.2.65"
[target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"netbsd\"))".dependencies.parking_lot]
version = "0.12"
[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.core-foundation-sys]
version = "0.8.2"
[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.mach]
version = "0.3"
[target."cfg(target_os = \"android\")".dependencies.jni]
version = "0.19"
[target."cfg(target_os = \"android\")".dependencies.ndk]
version = "0.7"
[target."cfg(target_os = \"android\")".dependencies.ndk-context]
version = "0.1"
[target."cfg(target_os = \"android\")".dependencies.oboe]
features = ["java-interface"]
version = "0.4"
[target."cfg(target_os = \"android\")".dev-dependencies.ndk-glue]
version = "0.7"
[target."cfg(target_os = \"emscripten\")".dependencies.stdweb]
default-features = false
version = "0.4.20"
[target."cfg(target_os = \"ios\")".dependencies.coreaudio-rs]
default-features = false
features = ["audio_unit", "core_audio", "audio_toolbox"]
version = "0.10"
[target."cfg(target_os = \"macos\")".dependencies.coreaudio-rs]
default-features = false
features = ["audio_unit", "core_audio"]
version = "0.10"
[target."cfg(target_os = \"windows\")".dependencies.asio-sys]
optional = true
version = "0.2"
[target."cfg(target_os = \"windows\")".dependencies.num-traits]
optional = true
version = "0.2.6"
[target."cfg(target_os = \"windows\")".dependencies.once_cell]
version = "1.12"
[target."cfg(target_os = \"windows\")".dependencies.parking_lot]
version = "0.12"
[target."cfg(target_os = \"windows\")".dependencies.windows]
features = ["Win32_Media_Audio", "Win32_Foundation", "Win32_System_Com", "Win32_Devices_Properties", "Win32_Media_KernelStreaming", "Win32_System_Com_StructuredStorage", "Win32_System_Ole", "Win32_System_Threading", "Win32_Security", "Win32_System_SystemServices", "Win32_System_WindowsProgramming", "Win32_Media_Multimedia", "Win32_UI_Shell_PropertiesSystem"]
version = "0.37"