Skip to content

Commit 32f8e7f

Browse files
committed
Updates for latest AUv3Support API
1 parent 92072b4 commit 32f8e7f

File tree

16 files changed

+114
-56
lines changed

16 files changed

+114
-56
lines changed

--NAME--.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@
15391539
repositoryURL = "https://github.com/bradhowes/AUv3Support";
15401540
requirement = {
15411541
kind = upToNextMajorVersion;
1542-
minimumVersion = 13.0.4;
1542+
minimumVersion = 13.0.5;
15431543
};
15441544
};
15451545
BD8D4E1327B589D4007011A5 /* XCRemoteSwiftPackageReference "knob" */ = {

--NAME--.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

--NAME--.xcodeproj/xcshareddata/xcschemes/All.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<BuildableReference
3030
BuildableIdentifier = "primary"
3131
BlueprintIdentifier = "C437FE792223688D008D6C09"
32-
BuildableName = "--NAME--.app"
32+
BuildableName = "--NAME--Host.app"
3333
BlueprintName = "macOS App"
3434
ReferencedContainer = "container:--NAME--.xcodeproj">
3535
</BuildableReference>

--NAME--.xcodeproj/xcshareddata/xcschemes/macOS App.xcscheme

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "C437FE792223688D008D6C09"
18-
BuildableName = "--NAME--.app"
18+
BuildableName = "--NAME--Host.app"
1919
BlueprintName = "macOS App"
2020
ReferencedContainer = "container:--NAME--.xcodeproj">
2121
</BuildableReference>
@@ -31,7 +31,7 @@
3131
<BuildableReference
3232
BuildableIdentifier = "primary"
3333
BlueprintIdentifier = "C437FE792223688D008D6C09"
34-
BuildableName = "--NAME--.app"
34+
BuildableName = "--NAME--Host.app"
3535
BlueprintName = "macOS App"
3636
ReferencedContainer = "container:--NAME--.xcodeproj">
3737
</BuildableReference>
@@ -84,7 +84,7 @@
8484
<BuildableReference
8585
BuildableIdentifier = "primary"
8686
BlueprintIdentifier = "C437FE792223688D008D6C09"
87-
BuildableName = "--NAME--.app"
87+
BuildableName = "--NAME--Host.app"
8888
BlueprintName = "macOS App"
8989
ReferencedContainer = "container:--NAME--.xcodeproj">
9090
</BuildableReference>
@@ -108,7 +108,7 @@
108108
<BuildableReference
109109
BuildableIdentifier = "primary"
110110
BlueprintIdentifier = "C437FE792223688D008D6C09"
111-
BuildableName = "--NAME--.app"
111+
BuildableName = "--NAME--Host.app"
112112
BlueprintName = "macOS App"
113113
ReferencedContainer = "container:--NAME--.xcodeproj">
114114
</BuildableReference>

--NAME--.xcodeproj/xcshareddata/xcschemes/macOS Extension.xcscheme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<BuildableReference
3030
BuildableIdentifier = "primary"
3131
BlueprintIdentifier = "C437FE792223688D008D6C09"
32-
BuildableName = "--NAME--.app"
32+
BuildableName = "--NAME--Host.app"
3333
BlueprintName = "macOS App"
3434
ReferencedContainer = "container:--NAME--.xcodeproj">
3535
</BuildableReference>
@@ -95,7 +95,7 @@
9595
<BuildableReference
9696
BuildableIdentifier = "primary"
9797
BlueprintIdentifier = "C437FE792223688D008D6C09"
98-
BuildableName = "--NAME--.app"
98+
BuildableName = "--NAME--Host.app"
9999
BlueprintName = "macOS App"
100100
ReferencedContainer = "container:--NAME--.xcodeproj">
101101
</BuildableReference>

.gitignore

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
1+
# See LICENSE folder for this sample’s licensing information.
2+
#
3+
# Apple sample code gitignore configuration.
14

2-
## User settings
3-
xcuserdata/
5+
# Finder
6+
.DS_Store
47

5-
## Obj-C/Swift specific
6-
*.hmap
8+
# Xcode - User files
9+
xcuserdata/
710

8-
## App packaging
9-
*.ipa
10-
*.dSYM.zip
11-
*.dSYM
11+
**/*.xcodeproj/project.xcworkspace/*
12+
!**/*.xcodeproj/project.xcworkspace/xcshareddata
1213

13-
## Playgrounds
14-
timeline.xctimeline
15-
playground.xcworkspace
14+
**/*.xcodeproj/project.xcworkspace/xcshareddata/*
15+
!**/*.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
1616

17-
# Swift Package Manager
18-
.build/
17+
**/*.playground/playground.xcworkspace/*
18+
!**/*.playground/playground.xcworkspace/xcshareddata
1919

20-
# fastlane
20+
**/*.playground/playground.xcworkspace/xcshareddata/*
21+
!**/*.playground/playground.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
2122

22-
fastlane/report.xml
23-
fastlane/Preview.html
24-
fastlane/screenshots/**/*.png
25-
fastlane/test_output
23+
DerivedData/
24+
.DerivedData-iOS/
25+
.DerivedData-macOS/
2626

27-
# Files from scripts/bumpVersions.py
2827
**/*.old
28+
29+
Gemfile
30+
Gemfile.lock
31+
32+
fastlane
33+
Packages/.swiftpm/
34+
Packages/.build/
35+
Packages/Package.resolved
36+
.version
37+
exportOptions.plist

Makefile

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PLATFORM_IOS = iOS Simulator,name=iPad mini (6th generation)
1+
PLATFORM_IOS = iOS Simulator,name=iPad mini (A17 Pro)
22
PLATFORM_MACOS = macOS
33

44
default: build
@@ -10,6 +10,13 @@ build-iOS:
1010
-derivedDataPath "$(PWD)/.DerivedData-iOS" \
1111
-destination platform="$(PLATFORM_IOS)"
1212

13+
test-iOS:
14+
rm -rf "$(PWD)/.DerivedData-iOS"
15+
xcodebuild test \
16+
-scheme 'iOS App' \
17+
-derivedDataPath "$(PWD)/.DerivedData-iOS" \
18+
-destination platform="$(PLATFORM_IOS)"
19+
1320
build-macOS:
1421
rm -rf "$(PWD)/.DerivedData-macOS"
1522
xcodebuild build \
@@ -18,9 +25,17 @@ build-macOS:
1825
-destination platform="$(PLATFORM_MACOS)" \
1926
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
2027

21-
build: build-iOS build-macOS
28+
test-macOS:
29+
rm -rf "$(PWD)/.DerivedData-macOS"
30+
xcodebuild test \
31+
-scheme 'macOS App' \
32+
-derivedDataPath "$(PWD)/.DerivedData-macOS" \
33+
-destination platform="$(PLATFORM_MACOS)" \
34+
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
35+
36+
build: test-iOS test-macOS
2237

23-
.PHONY: build build-iOS build-macOS
38+
.PHONY: build build-iOS test-macOS
2439

2540
clean:
2641
-rm -rf $(PWD)/.DerivedData-macOS $(PWD)/.DerivedData-iOS

Packages/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let package = Package(
1313
.library(name: "Theme", targets: ["Theme"])
1414
],
1515
dependencies: [
16-
.package(url: "https://github.com/bradhowes/AUv3Support", from: "13.0.4"),
16+
.package(url: "https://github.com/bradhowes/AUv3Support", from: "13.0.5"),
1717
],
1818
targets: [
1919
.target(

Packages/Sources/Kernel/C++/Kernel.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ class Kernel : public DSPHeaders::EventProcessor<Kernel> {
148148
auto [evenTap, oddTap] = odd90 ? calcDoubleTap(center, variance) : calcSingleTap(center, variance);
149149
writeSample(ins, outs, evenTap, oddTap, feedback, wetMix_.frameValue(), dryMix_.frameValue());
150150
} else [[likely]] {
151-
auto delay = delay_.getImmediate();
152-
auto depth = depth_.getImmediate();
153-
auto feedback = (negativeFeedback_ ? -1.0 : 1.0) * feedback_.getImmediate();
154-
auto wetMix = wetMix_.getImmediate();
155-
auto dryMix = dryMix_.getImmediate();
151+
auto delay = delay_.finalValue();
152+
auto depth = depth_.finalValue();
153+
auto feedback = (negativeFeedback_ ? -1.0 : 1.0) * feedback_.finalValue();
154+
auto wetMix = wetMix_.finalValue();
155+
auto dryMix = dryMix_.finalValue();
156156
auto [center, variance] = calcCenterVariance(delay, depth);
157157
if (odd90) {
158158
while (frameCount-- >0) {

iOS/App/MainViewController.swift

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ final class MainViewController: UIViewController {
1515
guard let delegate = UIApplication.shared.delegate as? AppDelegate else { fatalError() }
1616

1717
let bundle = Bundle.main
18-
let component = AudioComponentDescription(componentType: bundle.auComponentType,
19-
componentSubType: bundle.auComponentSubtype,
20-
componentManufacturer: bundle.auComponentManufacturer,
21-
componentFlags: 0, componentFlagsMask: 0)
18+
let component = AudioComponentDescription(
19+
componentType: bundle.auComponentType,
20+
componentSubType: bundle.auComponentSubtype,
21+
componentManufacturer: bundle.auComponentManufacturer,
22+
componentFlags: 0, componentFlagsMask: 0
23+
)
2224

2325
let tintColor = UIColor(named: "label")!
24-
let config = HostViewConfig(name: bundle.auBaseName, version: bundle.releaseVersionNumber, appDelegate: delegate,
25-
appStoreId: bundle.appStoreId, componentDescription: component, sampleLoop: .sample1,
26-
tintColor: tintColor) { url in
26+
let config = HostViewConfig(
27+
name: bundle.auBaseName,
28+
appDelegate: delegate,
29+
appStoreId: bundle.appStoreId,
30+
componentDescription: component,
31+
sampleLoop: .sample1,
32+
tintColor: tintColor
33+
) { url in
2734
UIApplication.shared.open(url, options: [:], completionHandler: nil)
2835
}
2936

0 commit comments

Comments
 (0)