// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown // SPDX-License-Identifier: GPL-3.0-or-later #import "SizzleDeviceAU.h" NS_ASSUME_NONNULL_BEGIN /// What the Wavetable's and the Grain Cloud's editors draw in a plug-in: the /// built-in tables and sources (made in code, no sample store needed). Custom /// tables and sources need the Sizzle app's sample store for now. @interface SizzleDeviceAU (Sources) /// Factory wavetable [name], level 0 ([frames] x [size] floats), or nil while the /// factory set isn't built: building then starts in the background (ask again), or, /// with [blocking], happens now on this thread (the Mac snapshot tools). + (nullable NSData *)factoryWavetableNamed:(NSString *)name blocking:(BOOL)blocking frames:(NSInteger *)frames size:(NSInteger *)size NS_SWIFT_NAME(factoryWavetable(named:blocking:frames:size:)); /// Peak envelope (|x| max per bucket, 0..1, [buckets] floats) of the Grain Cloud's /// built-in source [name], or nil (unknown, or not rendered yet: as above). + (nullable NSData *)grainSourcePeaksNamed:(NSString *)name buckets:(NSInteger)buckets blocking:(BOOL)blocking NS_SWIFT_NAME(grainSourcePeaks(named:buckets:blocking:)); /// Length in seconds of built-in source [name], or 0 while it isn't rendered. + (double)grainSourceSecondsNamed:(NSString *)name NS_SWIFT_NAME(grainSourceSeconds(named:)); @end NS_ASSUME_NONNULL_END