Skip to content

Commit db0f487

Browse files
authored
Audio server plugin binding (#93)
* server plugin * add audio_server_plugin feature * bump version to 0.2.15
1 parent 412f4f1 commit db0f487

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "coreaudio-sys"
3-
version = "0.2.14"
3+
version = "0.2.15"
44
authors = ["Mitchell Nordine <mitchell.nordine@gmail.com>"]
55
description = "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen"
66
license = "MIT"
@@ -16,10 +16,11 @@ default-features = false
1616
features = ["runtime"]
1717

1818
[features]
19-
default = ["audio_toolbox", "audio_unit", "core_audio", "open_al", "core_midi"]
19+
default = ["audio_toolbox", "audio_unit", "core_audio", "audio_server_plugin", "open_al", "core_midi"]
2020
audio_toolbox = []
2121
audio_unit = []
2222
core_audio = []
23+
audio_server_plugin = []
2324
io_kit_audio = []
2425
open_al = []
2526
core_midi = []

build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ fn build(sdk_path: Option<&str>, target: &str) {
8383
headers.push("CoreAudio/CoreAudioTypes.h");
8484
} else {
8585
headers.push("CoreAudio/CoreAudio.h");
86+
87+
#[cfg(feature = "audio_server_plugin")]
88+
{
89+
headers.push("CoreAudio/AudioServerPlugIn.h");
90+
}
8691
}
8792
}
8893

0 commit comments

Comments
 (0)