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>
18 lines
543 B
Swift
18 lines
543 B
Swift
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import SwiftUI
|
|
|
|
/// The plugins' own editor (SizzleFXViewController) for a device the app hosts.
|
|
struct DeviceEditorView: UIViewControllerRepresentable {
|
|
let unit: SizzleDeviceAU
|
|
|
|
func makeUIViewController(context: Context) -> SizzleFXViewController {
|
|
let vc = SizzleFXViewController()
|
|
vc.attachAudioUnit(unit)
|
|
return vc
|
|
}
|
|
|
|
func updateUIViewController(_ vc: SizzleFXViewController, context: Context) {}
|
|
}
|