iOS: TrollStore AUv3 spike (host app + sine AUv3 + App Group self-test)
Separate tree under ios/ with its own Makefile: XcodeGen project, unsigned device build ad-hoc signed with entitlements and packed as an .ipa. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0c09c3a0f3
commit
77d6e459b2
@@ -0,0 +1,34 @@
|
||||
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import CoreAudioKit
|
||||
import UIKit
|
||||
|
||||
/// The extension's principal class: the AU factory and its (minimal) view.
|
||||
public final class AudioUnitViewController: AUViewController, AUAudioUnitFactory {
|
||||
private var audioUnit: AUAudioUnit?
|
||||
|
||||
public func createAudioUnit(with componentDescription: AudioComponentDescription) throws -> AUAudioUnit {
|
||||
let au = try SpikeAudioUnit(componentDescription: componentDescription, options: [])
|
||||
audioUnit = au
|
||||
return au
|
||||
}
|
||||
|
||||
public override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
preferredContentSize = CGSize(width: 400, height: 220)
|
||||
view.backgroundColor = UIColor(red: 0.08, green: 0.09, blue: 0.10, alpha: 1)
|
||||
let label = UILabel()
|
||||
label.numberOfLines = 0
|
||||
label.font = .monospacedSystemFont(ofSize: 12, weight: .regular)
|
||||
label.textColor = UIColor(red: 0.96, green: 0.76, blue: 0.29, alpha: 1)
|
||||
label.text = "Sizzle Spike Sine (AUv3)\nPlay notes from the host.\n\n" + Spike.probeGroup(as: "au-view")
|
||||
label.translatesAutoresizingMaskIntoConstraints = false
|
||||
view.addSubview(label)
|
||||
NSLayoutConstraint.activate([
|
||||
label.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 12),
|
||||
label.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -12),
|
||||
label.topAnchor.constraint(equalTo: view.topAnchor, constant: 12),
|
||||
])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user