1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! # Bindings to the `AudioToolbox` frameworks
//!
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
//!
//! This also contains bindings to [the deprecated `AudioUnit` framework][audiounit].
//!
//! [apple-doc]: https://developer.apple.com/documentation/audiotoolbox/
//! [audiounit]: https://developer.apple.com/documentation/audiounit/
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
// Update in Cargo.toml as well.
// NOTE: If we still supported macOS 10.10 or below, we'd have to link
// AudioUnit as well, because certain symbols were originally available there
// (reflected in `AudioToolbox.tbd` with `$ld$hide$os10.10$` etc.).
//
// In newer macOS versions, those symbols were moved to AudioToolbox.
//
// See also https://github.com/RustAudio/coreaudio-sys/pull/51
extern crate alloc;
extern crate std;
pub use *;
// MacTypes.h
pub type Boolean = u8;
pub type OSStatus = i32;
pub type Byte = u8;
pub type OSType = u32;