#core #audio #unit #osx #ios

sys coreaudio-sys

Bindings for Apple’s CoreAudio frameworks generated via rust-bindgen

14 releases

Uses old Rust 2015

0.2.8 Dec 6, 2020
0.2.7 Nov 29, 2020
0.2.5 Jun 25, 2020
0.2.4 Mar 10, 2020
0.0.1 Feb 28, 2015

#16 in macOS and iOS APIs

Download history 4788/week @ 2021-07-06 4913/week @ 2021-07-13 4776/week @ 2021-07-20 6119/week @ 2021-07-27 4657/week @ 2021-08-03 4943/week @ 2021-08-10 4697/week @ 2021-08-17 5389/week @ 2021-08-24 3974/week @ 2021-08-31 4365/week @ 2021-09-07 4553/week @ 2021-09-14 4487/week @ 2021-09-21 4245/week @ 2021-09-28 4884/week @ 2021-10-05 4273/week @ 2021-10-12 4168/week @ 2021-10-19

17,768 downloads per month
Used in 241 crates (4 directly)

MIT license

8KB
105 lines

coreaudio-sys Actions Status Crates.io Crates.io docs.rs

Raw bindings to Apple's Core Audio API for macos and iOS generated using rust-bindgen. coreaudio-rs is an attempt at offering a higher level API around this crate.

Cross Compiling

Rust Cross has a good explanation of how cross-compiling Rust works in general. While the author of Rust Cross advises against it, it is perfectly possible to cross-compile Rust for MacOS on Linux. OSXCross can be used to create a compiler toolchain that can compile for MacOS on Linux.

Environment Variables

When cross-compiling for MacOS on Linux there are two environment variables that are used to configure how coreaudio-sys finds the required headers and libraries. The following examples assume that you have OSXCross installed at /build/osxcross.

COREAUDIO_SDK_PATH

This tell coreaudio-sys where to find the MacOS SDK:

export COREAUDIO_SDK_PATH=/build/osxcross/target/SDK/MacOSX10.11.sdk

No runtime deps

~0–1.3MB
~29K SLoC