-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//! # Bindings to the `CoreAudio` framework | ||
//! | ||
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information. | ||
//! | ||
//! [apple-doc]: https://developer.apple.com/documentation/coreaudio/ | ||
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html | ||
#![no_std] | ||
#![cfg_attr(docsrs, feature(doc_auto_cfg))] | ||
// Update in Cargo.toml as well. | ||
#![doc(html_root_url = "https://docs.rs/objc2-core-audio/0.2.2")] | ||
|
||
#[cfg(feature = "alloc")] | ||
extern crate alloc; | ||
|
||
#[cfg(feature = "std")] | ||
extern crate std; | ||
|
||
mod generated; | ||
#[allow(unused_imports, unreachable_pub)] | ||
pub use self::generated::*; | ||
|
||
// MacTypes.h | ||
#[allow(dead_code)] | ||
pub(crate) type Boolean = u8; | ||
#[allow(dead_code)] | ||
pub(crate) type OSStatus = i32; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
framework = "CoreAudio" | ||
crate = "objc2-core-audio" | ||
required-crates = ["objc2-core-foundation"] | ||
custom-lib-rs = true | ||
macos = "10.0" | ||
maccatalyst = "13.1" | ||
ios = "2.0" | ||
tvos = "9.0" | ||
watchos = "3.0" | ||
visionos = "1.0" | ||
|
||
# Self-referential / recursive structs | ||
struct.AudioServerPlugInHostInterface.skipped = true | ||
typedef.AudioServerPlugInHostInterface.skipped = true | ||
typedef.AudioServerPlugInHostRef.skipped = true | ||
struct.AudioServerPlugInDriverInterface.skipped = true | ||
typedef.AudioServerPlugInDriverInterface.skipped = true | ||
typedef.AudioServerPlugInDriverRef.skipped = true | ||
|
||
# Needs dispatch_queue_t from libdispatch | ||
fn.AudioObjectAddPropertyListenerBlock.skipped = true | ||
fn.AudioObjectRemovePropertyListenerBlock.skipped = true | ||
fn.AudioDeviceCreateIOProcIDWithBlock.skipped = true | ||
|
||
# This is currently emitted incorrectly, the union field is | ||
# not included, which is an ABI mismatch. | ||
struct.AudioServerPlugInIOCycleInfo.skipped = true | ||
typedef.AudioServerPlugInIOCycleInfo.skipped = true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
+217 −0 | AudioToolbox/mod.rs | |
+1,761 −0 | CoreAudio/AudioHardware.rs | |
+1,024 −0 | CoreAudio/AudioHardwareDeprecated.rs | |
+259 −0 | CoreAudio/AudioServerPlugIn.rs | |
+45 −0 | CoreAudio/HostTime.rs | |
+982 −0 | CoreAudio/mod.rs | |
+40 −0 | CoreMedia/CMAudioDeviceClock.rs | |
+18 −0 | CoreMedia/mod.rs |