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:
co-authored by
Claude Opus 5.5
parent
a5b2f4c873
commit
7f231c8f79
@@ -0,0 +1,36 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user