Files
sizzletracker-android/ios/app/Host/SizzleSession+Internal.h
T
ReactorcoremeltdownandClaude Opus 5.5 962cfd1e2b iOS 0.4.0: Sizzle's Tracker, Mix, Toolbox and Setup tabs on the C++ engine
Ported from the Android tabs by parallel agents (each screen with its own
SizzleSession category); slot editors use the card editor with a preset
library; songs load/save in the Android project format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:32:30 +01:00

24 lines
1.0 KiB
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;
/// Put back into the store every sample the song refers to (Documents/samples).
- (void)rehydrateSamples;
/// The sample store (thread-safe on its own).
- (sizzle::sampler::SampleStore &)sampleStore;
@end