Effect visualisation through the C++ effect, engine and AU; custom wavetables and grain sources load and persist with the song; the app's slot editor hosts the file picker for bespoke views. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
655 B
Swift
17 lines
655 B
Swift
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import Foundation
|
|
|
|
/// DeviceDataSource for an AUv3 (the plugin extension, the device lab). Each
|
|
/// device's Bespoke file adds what it supports in an extension of this class.
|
|
@MainActor
|
|
final class AUDataSource: DeviceDataSource {
|
|
let au: SizzleDeviceAU
|
|
init(au: SizzleDeviceAU) { self.au = au }
|
|
|
|
// Hidden settings live in the AU's state (saved with host sessions).
|
|
func hiddenValue(_ key: String) -> String? { au.hiddenValue(forKey: key) }
|
|
func setHiddenValue(_ value: String, key: String) { au.setHiddenValue(value, forKey: key) }
|
|
}
|