Skip to content

Commit

Permalink
Some fixes for the ios example
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Oct 17, 2020
1 parent a18f7da commit eb73670
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[workspace]
members = [
"examples/ios/",
]
[package]
name = "coreaudio-rs"
version = "0.9.1"
Expand Down
14 changes: 14 additions & 0 deletions examples/ios/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "coreaudio-ios-example"
version = "0.9.1"
authors = ["mitchmindtree <[email protected]>", "yupferris <[email protected]>", "Sebastian Imlay <[email protected]>"]
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 = "../../" }
4 changes: 3 additions & 1 deletion examples/ios/coreaudio-ios-example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 = (
Expand Down
8 changes: 4 additions & 4 deletions examples/ios/src/feedback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit eb73670

Please sign in to comment.