Skip to content

Commit eb73670

Browse files
committed
Some fixes for the ios example
1 parent a18f7da commit eb73670

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[workspace]
2+
members = [
3+
"examples/ios/",
4+
]
15
[package]
26
name = "coreaudio-rs"
37
version = "0.9.1"

examples/ios/Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[package]
2+
name = "coreaudio-ios-example"
3+
version = "0.9.1"
4+
authors = ["mitchmindtree <mitchell.nordine@gmail.com>", "yupferris <jake@fusetools.com>", "Sebastian Imlay <sebastian.imlay@gmail.com>"]
5+
description = "An iOS example for coreaudio-rs"
6+
readme = "README.md"
7+
license = "MIT/Apache-2.0"
8+
9+
[lib]
10+
name = "coreaudio_ios_example"
11+
crate-type = ["staticlib"]
12+
13+
[dependencies]
14+
coreaudio-rs = { path = "../../" }

examples/ios/coreaudio-ios-example.xcodeproj/project.pbxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,14 @@
333333
buildSettings = {
334334
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
335335
CODE_SIGN_STYLE = Automatic;
336+
DEVELOPMENT_TEAM = "";
336337
INFOPLIST_FILE = "ios-src/Info.plist";
337338
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
338339
LD_RUNPATH_SEARCH_PATHS = (
339340
"$(inherited)",
340341
"@executable_path/Frameworks",
341342
);
342-
LIBRARY_SEARCH_PATHS = target/universal/debug;
343+
LIBRARY_SEARCH_PATHS = ../../target/universal/debug/;
343344
OTHER_LDFLAGS = "-lcoreaudio_ios_example";
344345
OTHER_LIBTOOLFLAGS = "";
345346
PRODUCT_BUNDLE_IDENTIFIER = "coreaudio-rs.coreaudio-ios-example";
@@ -353,6 +354,7 @@
353354
buildSettings = {
354355
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
355356
CODE_SIGN_STYLE = Automatic;
357+
DEVELOPMENT_TEAM = "";
356358
INFOPLIST_FILE = "ios-src/Info.plist";
357359
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
358360
LD_RUNPATH_SEARCH_PATHS = (

examples/ios/src/feedback.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ extern crate coreaudio;
55
use std::collections::VecDeque;
66
use std::sync::{Arc, Mutex};
77

8-
use coreaudio::audio_unit::{AudioUnit, Element, SampleFormat, Scope, StreamFormat};
9-
use coreaudio::audio_unit::audio_format::LinearPcmFlags;
10-
use coreaudio::audio_unit::render_callback::{self, data};
11-
use coreaudio::sys::*;
8+
use feedback::coreaudio::audio_unit::{AudioUnit, Element, SampleFormat, Scope, StreamFormat};
9+
use feedback::coreaudio::audio_unit::audio_format::LinearPcmFlags;
10+
use feedback::coreaudio::audio_unit::render_callback::{self, data};
11+
use feedback::coreaudio::sys::*;
1212

1313
const SAMPLE_RATE: f64 = 44100.0;
1414

0 commit comments

Comments
 (0)