Files
sizzletracker-android/ios/app/Host/SizzleSession+Internal.h
T
ReactorcoremeltdownandClaude Opus 5.5 29650b88d7 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>
2026-11-16 09:15:28 +01:00

22 lines
929 B
Objective-C

// 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