Refactor coreaudio host and add iOS support + ios-feedback example

This commit is contained in:
Michael Hills 2020-10-11 23:27:27 +11:00
parent 36ae2f02a8
commit 2cccf99d50
23 changed files with 2239 additions and 895 deletions

View file

@ -35,10 +35,15 @@ parking_lot = "0.11"
jack = { version = "0.6.5", optional = true }
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
coreaudio-rs = { version = "0.9.1", default-features = false, features = ["audio_unit", "core_audio"] }
core-foundation-sys = "0.6.2" # For linking to CoreFoundation.framework and handling device name `CFString`s.
mach = "0.3" # For access to mach_timebase type.
[target.'cfg(target_os = "macos")'.dependencies]
coreaudio-rs = { version = "0.10.0", default-features = false, features = ["audio_unit", "core_audio"] }
[target.'cfg(target_os = "ios")'.dependencies]
coreaudio-rs = { version = "0.10.0", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] }
[target.'cfg(target_os = "emscripten")'.dependencies]
stdweb = { version = "0.1.3", default-features = false }