Skip to content

Commit

Permalink
Updated to AUv3Support 11.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhowes committed Feb 3, 2024
1 parent 43a346d commit 89f4fb4
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 18 deletions.
6 changes: 4 additions & 2 deletions --NAME--.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
BuildIndependentTargetsInParallel = YES;
DefaultBuildSystemTypeForWorkspace = Latest;
LastSwiftUpdateCheck = 1240;
LastUpgradeCheck = 1500;
LastUpgradeCheck = 1520;
ORGANIZATIONNAME = Apple;
TargetAttributes = {
BD1D257525D5AAB000523748 = {
Expand Down Expand Up @@ -799,6 +799,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = BDE2CE1824A3E8DB004AC8FA /* Staging.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
Expand Down Expand Up @@ -1130,6 +1131,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = BDE2CE1724A3E887004AC8FA /* Dev.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
Expand Down Expand Up @@ -1550,7 +1552,7 @@
repositoryURL = "https://github.com/bradhowes/AUv3Support";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 10.1.0;
minimumVersion = 11.1.0;
};
};
BD8D4E1327B589D4007011A5 /* XCRemoteSwiftPackageReference "knob" */ = {
Expand Down
2 changes: 1 addition & 1 deletion --NAME--.xcodeproj/xcshareddata/xcschemes/All.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion --NAME--.xcodeproj/xcshareddata/xcschemes/iOS App.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
LastUpgradeVersion = "1520"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
LastUpgradeVersion = "1520"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Packages/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
.library(name: "Theme", targets: ["Theme"])
],
dependencies: [
.package(url: "https://github.com/bradhowes/AUv3Support", from: "10.1.0"),
.package(url: "https://github.com/bradhowes/AUv3Support", from: "11.1.0"),
],
targets: [
.target(
Expand Down
9 changes: 1 addition & 8 deletions Packages/Sources/Kernel/KernelBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@ - (void)setRenderingFormat:(NSInteger)busCount format:(AVAudioFormat*)inputForma

- (void)deallocateRenderResources { kernel_->deallocateRenderResources(); }

- (AUInternalRenderBlock)internalRenderBlock:(nullable AUHostTransportStateBlock)tsb {
- (AUInternalRenderBlock)internalRenderBlock {
__block auto dsp = kernel_;
__block auto transportStateBlock = tsb;
return ^AUAudioUnitStatus(AudioUnitRenderActionFlags* flags, const AudioTimeStamp* timestamp,
AUAudioFrameCount frameCount, NSInteger outputBusNumber, AudioBufferList* output,
const AURenderEvent* realtimeEventListHead, AURenderPullInputBlock pullInputBlock) {
if (transportStateBlock) {
AUHostTransportStateFlags flags;
transportStateBlock(&flags, NULL, NULL, NULL);
bool rendering = flags & AUHostTransportStateMoving;
dsp->setRendering(rendering);
}
return dsp->processAndRender(timestamp, frameCount, outputBusNumber, output, realtimeEventListHead, pullInputBlock);
};
}
Expand Down
2 changes: 1 addition & 1 deletion Packages/Sources/Kernel/include/KernelBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ NS_ASSUME_NONNULL_BEGIN
@returns AUInternalRenderBlock instance
*/
- (AUInternalRenderBlock)internalRenderBlock:(nullable AUHostTransportStateBlock)tsb;
- (AUInternalRenderBlock)internalRenderBlock;

/**
Set the bypass state.
Expand Down

0 comments on commit 89f4fb4

Please sign in to comment.