iOS 0.2.0: instruments as AUv3, in-app host with keyboard, MIDI in and benchmark

Shared SizzleDeviceAU base for effects and instruments; sizzle::Instrument voice
pools; Android's factory presets generated into the specs header; the app hosts
every device in-process (no dependence on the system plugin registry).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-15 22:17:47 +01:00
co-authored by Claude Opus 5.5
parent a5b2f4c873
commit 7f231c8f79
35 changed files with 1989 additions and 368 deletions
+16 -9
View File
@@ -18,19 +18,19 @@ final class PluginCheck: ObservableObject {
componentManufacturer: Self.manufacturer,
componentFlags: 0, componentFlagsMask: 0)
return AVAudioUnitComponentManager.shared().components(matching: any)
.filter { $0.audioComponentDescription.componentType == kAudioUnitType_Effect }
.filter { [kAudioUnitType_Effect, kAudioUnitType_MusicDevice].contains($0.audioComponentDescription.componentType) }
}
func listInstalled() {
let comps = installed()
lines = ["Registered effects: \(comps.count)"] + comps.map { " \($0.name)" }
lines = ["Registered plugins (extension): \(comps.count)"] + comps.map { " \($0.name)" }
}
func run() async {
running = true
defer { running = false }
let comps = installed()
lines = ["Checking \(comps.count) effects…"]
lines = ["Plugin extension (as AUM loads it): \(comps.count) registered"]
var ok = 0
for c in comps {
let result = await check(c)
@@ -86,13 +86,20 @@ final class PluginCheck: ObservableObject {
let ex = SPKTry {
do {
try engine.enableManualRenderingMode(.offline, format: format, maximumFrameCount: 4096)
engine.attach(player)
engine.attach(unit)
engine.connect(player, to: unit, format: format)
engine.connect(unit, to: engine.mainMixerNode, format: format)
try engine.start()
player.scheduleBuffer(self.testBuffer(format: format), completionHandler: nil)
player.play()
if let inst = unit as? AVAudioUnitMIDIInstrument {
engine.connect(unit, to: engine.mainMixerNode, format: format)
try engine.start()
inst.startNote(60, withVelocity: 100, onChannel: 0)
inst.startNote(64, withVelocity: 100, onChannel: 0)
} else {
engine.attach(player)
engine.connect(player, to: unit, format: format)
engine.connect(unit, to: engine.mainMixerNode, format: format)
try engine.start()
player.scheduleBuffer(self.testBuffer(format: format), completionHandler: nil)
player.play()
}
} catch { thrown = error }
}
if let ex = ex { return "FAIL exception \(ex)" }