From eb73670daf386cc18ceb498ae3b1442881aa18e5 Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Sat, 17 Oct 2020 12:20:29 -0700 Subject: [PATCH] Some fixes for the ios example --- Cargo.toml | 4 ++++ examples/ios/Cargo.toml | 14 ++++++++++++++ .../project.pbxproj | 4 +++- examples/ios/src/feedback.rs | 8 ++++---- 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 examples/ios/Cargo.toml diff --git a/Cargo.toml b/Cargo.toml index ea746a19f..fd4f740b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,7 @@ +[workspace] +members = [ + "examples/ios/", +] [package] name = "coreaudio-rs" version = "0.9.1" diff --git a/examples/ios/Cargo.toml b/examples/ios/Cargo.toml new file mode 100644 index 000000000..c97e83698 --- /dev/null +++ b/examples/ios/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "coreaudio-ios-example" +version = "0.9.1" +authors = ["mitchmindtree ", "yupferris ", "Sebastian Imlay "] +description = "An iOS example for coreaudio-rs" +readme = "README.md" +license = "MIT/Apache-2.0" + +[lib] +name = "coreaudio_ios_example" +crate-type = ["staticlib"] + +[dependencies] +coreaudio-rs = { path = "../../" } diff --git a/examples/ios/coreaudio-ios-example.xcodeproj/project.pbxproj b/examples/ios/coreaudio-ios-example.xcodeproj/project.pbxproj index a706f377e..c5484ff7c 100644 --- a/examples/ios/coreaudio-ios-example.xcodeproj/project.pbxproj +++ b/examples/ios/coreaudio-ios-example.xcodeproj/project.pbxproj @@ -333,13 +333,14 @@ buildSettings = { ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = "ios-src/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - LIBRARY_SEARCH_PATHS = target/universal/debug; + LIBRARY_SEARCH_PATHS = ../../target/universal/debug/; OTHER_LDFLAGS = "-lcoreaudio_ios_example"; OTHER_LIBTOOLFLAGS = ""; PRODUCT_BUNDLE_IDENTIFIER = "coreaudio-rs.coreaudio-ios-example"; @@ -353,6 +354,7 @@ buildSettings = { ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = "ios-src/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( diff --git a/examples/ios/src/feedback.rs b/examples/ios/src/feedback.rs index cd3fcbc44..9c011fea1 100644 --- a/examples/ios/src/feedback.rs +++ b/examples/ios/src/feedback.rs @@ -5,10 +5,10 @@ extern crate coreaudio; use std::collections::VecDeque; use std::sync::{Arc, Mutex}; -use coreaudio::audio_unit::{AudioUnit, Element, SampleFormat, Scope, StreamFormat}; -use coreaudio::audio_unit::audio_format::LinearPcmFlags; -use coreaudio::audio_unit::render_callback::{self, data}; -use coreaudio::sys::*; +use feedback::coreaudio::audio_unit::{AudioUnit, Element, SampleFormat, Scope, StreamFormat}; +use feedback::coreaudio::audio_unit::audio_format::LinearPcmFlags; +use feedback::coreaudio::audio_unit::render_callback::{self, data}; +use feedback::coreaudio::sys::*; const SAMPLE_RATE: f64 = 44100.0;