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>
24 lines
1.0 KiB
Objective-C
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
|