With rust-jack 0.7, the buffer_size callback is moved to ProcessHandler. This reflects how it is actually called by jack: it is called synchronously on the process thread, but it is allowed to perform non-real-time-safe operations. In CPAL, this means that it is fine to reallocate the temporary interlacing buffers when buffer size changes. This removes the need for buffer splitting on the output stream type, and prevents panics when buffer size is made larger than initially on the input stream type. (for some reason, buffer splitting was not implemented for input previously)
76 lines
2.6 KiB
TOML
76 lines
2.6 KiB
TOML
[package]
|
|
name = "cpal"
|
|
version = "0.13.3"
|
|
authors = ["The CPAL contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
|
description = "Low-level cross-platform audio I/O library in pure Rust."
|
|
repository = "https://github.com/rustaudio/cpal"
|
|
documentation = "https://docs.rs/cpal"
|
|
license = "Apache-2.0"
|
|
keywords = ["audio", "sound"]
|
|
|
|
[features]
|
|
asio = ["asio-sys", "num-traits"] # Only available on Windows. See README for setup instructions.
|
|
|
|
[dependencies]
|
|
thiserror = "1.0.2"
|
|
|
|
[dev-dependencies]
|
|
anyhow = "1.0.12"
|
|
hound = "3.4"
|
|
ringbuf = "0.2"
|
|
clap = { version = "2.33.3", default-features = false }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winapi = { version = "0.3", features = ["audiosessiontypes", "audioclient", "coml2api", "combaseapi", "debug", "devpkey", "handleapi", "ksmedia", "mmdeviceapi", "objbase", "profileapi", "std", "synchapi", "winbase", "winuser"] }
|
|
asio-sys = { version = "0.2", path = "asio-sys", optional = true }
|
|
num-traits = { version = "0.2.6", optional = true }
|
|
parking_lot = "0.11"
|
|
lazy_static = "1.4"
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd"))'.dependencies]
|
|
alsa = "0.5"
|
|
nix = "0.20"
|
|
libc = "0.2.65"
|
|
parking_lot = "0.11"
|
|
jack = { version = "0.7.0", optional = true }
|
|
|
|
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
|
|
core-foundation-sys = "0.6.2" # For linking to CoreFoundation.framework and handling device name `CFString`s.
|
|
mach = "0.3" # For access to mach_timebase type.
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
coreaudio-rs = { version = "0.10.0", default-features = false, features = ["audio_unit", "core_audio"] }
|
|
|
|
[target.'cfg(target_os = "ios")'.dependencies]
|
|
coreaudio-rs = { version = "0.10.0", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] }
|
|
|
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
|
stdweb = { version = "0.1.3", default-features = false }
|
|
|
|
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
|
|
wasm-bindgen = { version = "0.2.58", optional = true }
|
|
js-sys = { version = "0.3.35" }
|
|
web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"] }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
oboe = { version = "0.4.0", features = [ "java-interface" ] }
|
|
ndk = "0.3"
|
|
ndk-glue = "0.3"
|
|
jni = "0.18"
|
|
|
|
[[example]]
|
|
name = "android"
|
|
path = "examples/android.rs"
|
|
crate-type = ["cdylib"]
|
|
|
|
[[example]]
|
|
name = "beep"
|
|
|
|
[[example]]
|
|
name = "enumerate"
|
|
|
|
[[example]]
|
|
name = "feedback"
|
|
|
|
[[example]]
|
|
name = "record_wav"
|