Skip to content

Commit

Permalink
Audio server plugin binding (#93)
Browse files Browse the repository at this point in the history
* server plugin

* add audio_server_plugin feature

* bump version to 0.2.15
  • Loading branch information
xiaopengli89 authored Jan 4, 2024
1 parent 412f4f1 commit db0f487
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "coreaudio-sys"
version = "0.2.14"
version = "0.2.15"
authors = ["Mitchell Nordine <[email protected]>"]
description = "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen"
license = "MIT"
Expand All @@ -16,10 +16,11 @@ default-features = false
features = ["runtime"]

[features]
default = ["audio_toolbox", "audio_unit", "core_audio", "open_al", "core_midi"]
default = ["audio_toolbox", "audio_unit", "core_audio", "audio_server_plugin", "open_al", "core_midi"]
audio_toolbox = []
audio_unit = []
core_audio = []
audio_server_plugin = []
io_kit_audio = []
open_al = []
core_midi = []
Expand Down
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ fn build(sdk_path: Option<&str>, target: &str) {
headers.push("CoreAudio/CoreAudioTypes.h");
} else {
headers.push("CoreAudio/CoreAudio.h");

#[cfg(feature = "audio_server_plugin")]
{
headers.push("CoreAudio/AudioServerPlugIn.h");
}
}
}

Expand Down

0 comments on commit db0f487

Please sign in to comment.