0.37.0 (71): one engine, one version for Android and iOS
- Three source trees: core/ (shared C++ engine, moved from ios/core), app/ (Android UI), ios/app/ (iOS UI) - Android plays through core/ via JNI (EngineHost, jni_engine.cpp): the Oboe callback renders natively; the Kotlin model is mirrored as project text and applied as a diff, so playback continues through edits - The Kotlin engine moves to the unit tests as ReferenceEngine (golden reference) - Shared MasterRecorder in core/src/host, used by both apps; host_test - versions.properties: one versionName/versionCode for both platforms, continuing Android's numbering (iOS 0.6.0/11 -> 0.37.0/71) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
64e21e0bcc
commit
2bc5cb1cbb
@@ -0,0 +1,39 @@
|
||||
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
// Effect::create. Each effect lives in src/fx/<Name>.cpp and defines its maker
|
||||
// below. The defaults here are weak definitions returning nullptr; a port's own
|
||||
// (strong) definition replaces its default at link time, so a build without some
|
||||
// of those files still links (lets ports land one by one).
|
||||
|
||||
#include <cstring>
|
||||
#include "sizzle/Effect.hpp"
|
||||
|
||||
#define SIZZLE_MAKER(fn) \
|
||||
__attribute__((weak)) std::unique_ptr<Effect> fn(int) { return nullptr; }
|
||||
|
||||
namespace sizzle {
|
||||
|
||||
SIZZLE_MAKER(makeBitcrusher);
|
||||
SIZZLE_MAKER(makeFilter);
|
||||
SIZZLE_MAKER(makeGraphicEq);
|
||||
SIZZLE_MAKER(makeTapeDelay);
|
||||
SIZZLE_MAKER(makeMixTightener);
|
||||
SIZZLE_MAKER(makeTapeEngine);
|
||||
SIZZLE_MAKER(makeGranularGlitch);
|
||||
SIZZLE_MAKER(makeAmbienceReverb);
|
||||
|
||||
std::unique_ptr<Effect> Effect::create(const char *type, int sr) {
|
||||
struct Entry { const char *type; std::unique_ptr<Effect> (*make)(int); };
|
||||
const Entry table[] = {
|
||||
{"BITCRUSHER", makeBitcrusher}, {"FILTER", makeFilter},
|
||||
{"EQ10", makeGraphicEq}, {"DELAY", makeTapeDelay},
|
||||
{"MIX_TIGHTENER", makeMixTightener}, {"TAPE_ENGINE", makeTapeEngine},
|
||||
{"GRANULAR", makeGranularGlitch}, {"AMBIENCE", makeAmbienceReverb},
|
||||
};
|
||||
for (const auto &e : table)
|
||||
if (std::strcmp(type, e.type) == 0) return e.make(sr);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace sizzle
|
||||
Reference in New Issue
Block a user