C++ ports of the Kotlin effects, checked against audio the Kotlin code renders (25 scenarios, IosGoldenExport); an Objective-C++ AUv3 wrapper checked on the Mac against the core (parameters, presets, saved state); a container app that checks each plugin on the device. Built as a TrollStore .ipa. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
#pragma once
|
|
|
|
// Plain descriptions of Sizzle's devices and their parameters. The tables
|
|
// themselves are generated from the Android app (DeviceSpecs.gen.hpp).
|
|
|
|
namespace sizzle {
|
|
|
|
enum class Kind { Instrument, Effect };
|
|
|
|
/** One parameter, as ToolboxType's ParamSpec: choices != nullptr marks an enum
|
|
* (nullptr-terminated list of names; the default is an index into it). */
|
|
struct ParamSpec {
|
|
const char *key;
|
|
const char *label;
|
|
float def, min, max;
|
|
bool isInt;
|
|
const char *const *choices;
|
|
bool isEnum() const { return choices != nullptr; }
|
|
int choiceCount() const { int n = 0; if (choices) while (choices[n]) ++n; return n; }
|
|
};
|
|
|
|
struct DeviceSpec {
|
|
const char *type; // ToolboxType name, e.g. "BITCRUSHER"
|
|
const char *displayName;
|
|
Kind kind;
|
|
const ParamSpec *params;
|
|
int paramCount;
|
|
};
|
|
|
|
/** The device with ToolboxType name [type], or nullptr. */
|
|
const DeviceSpec *findDevice(const char *type);
|
|
|
|
} // namespace sizzle
|