Files
sizzletracker-android/ios/app/FX/SizzleDeviceAU.h
T
ReactorcoremeltdownandClaude Opus 5.5 7f231c8f79 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>
2026-11-15 22:17:47 +01:00

37 lines
1.6 KiB
Objective-C

// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
// SPDX-License-Identifier: GPL-3.0-or-later
#import <AudioToolbox/AudioToolbox.h>
NS_ASSUME_NONNULL_BEGIN
/// What every Sizzle AUv3 shares: the device (a ToolboxType, e.g. "DELAY" or
/// "WAVETABLE") and its parameters from the generated specs, the hand-over of
/// settings to the render thread, factory presets (Android's PresetLibrary set),
/// user presets and saved state. Subclasses add busses and the render block:
/// SizzleEffectAU (aufx) and SizzleInstrumentAU (aumu). Pick the right one with
/// +classForComponentType:.
@interface SizzleDeviceAU : AUAudioUnit
/// Standard initializer: the device comes from the component's subtype
/// (components.txt). Used by AU registration (in-process and in the extension).
- (nullable instancetype)initWithComponentDescription:(AudioComponentDescription)desc
options:(AudioComponentInstantiationOptions)options
error:(NSError **)outError;
/// The AU class for a component type: kAudioUnitType_MusicDevice → instruments,
/// anything else → effects.
+ (Class)classForComponentType:(OSType)type;
/// The device's name as shown in Sizzle ("Tape Delay").
@property (nonatomic, readonly) NSString *displayName;
/// Its ToolboxType name ("DELAY").
@property (nonatomic, readonly) NSString *toolboxType;
/// Formats a parameter value the way Sizzle's editor does (units, %, choices).
- (NSString *)stringForParameter:(AUParameter *)param value:(AUValue)value;
@end
NS_ASSUME_NONNULL_END