iOS milestone 3 groundwork: SizzleSession bridge, app shell with tabs, slot-backed editors, screen snapshots

SizzleSession owns the song, engine (192-frame chunks, try-lock on the audio
thread), samples and audio output; AppModel/RootView give the four tabs;
DeviceModel now works on toolbox slots too; make screen-snapshots renders the
app's tabs on the Mac.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Reactorcoremeltdown
2026-11-16 09:15:28 +01:00
co-authored by Claude Opus 5.5
parent 7bc54e6466
commit 29650b88d7
26 changed files with 1211 additions and 47 deletions
+21
View File
@@ -0,0 +1,21 @@
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
// SPDX-License-Identifier: GPL-3.0-or-later
// For SizzleSession categories only (Objective-C++): run code on the song under
// the song lock. Each screen adds the API it needs in its own category file
// (SizzleSession+Tracker / +Mix / +Setup) instead of growing SizzleSession.mm.
#import "SizzleSession.h"
#include "sizzle/Engine.hpp"
#include "sizzle/Model.hpp"
#include "sampler/SampleStore.hpp"
@interface SizzleSession ()
/// Change the song: [body] runs under the lock, then SizzleSessionDidChange is posted.
- (void)edit:(void (^)(sizzle::model::Project &p, sizzle::engine::Engine &e))body;
/// Read the song consistently: [body] runs under the lock, nothing is posted.
- (void)read:(void (^)(const sizzle::model::Project &p, const sizzle::engine::Engine &e))body;
/// The sample store (thread-safe on its own).
- (sizzle::sampler::SampleStore &)sampleStore;
@end