iOS 0.6.0: milestone 5 (recording, MIDI, input bindings, themes, bundles, backups)
- Master recording (MasterSink ring + writer thread) and the sample recorder - CoreMIDI in/out: sound module, clock send/follow, virtual "Sizzle" ports; platform-free parser/module/clock in core (midi_test) - Hardware keyboard and gamepads via GameController; rebindable keyboard, gamepad and MIDI CC actions; per-parameter MIDI learn - Colour themes (.szt), project bundles (.szgz), backup & restore; ZIP in core with zlib (zip_test against jar and unzip) - Persistent app settings; audio pauses in the background unless sound module Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
435305e42a
commit
64e21e0bcc
@@ -0,0 +1,31 @@
|
||||
// SPDX-FileCopyrightText: 2026 Reactorcoremeltdown
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#import "SizzleSession.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
/// Project bundles and whole-app backups (Android's ProjectBundleIo and BackupIo),
|
||||
/// both ZIP archives in Android's layouts.
|
||||
@interface SizzleSession (Files)
|
||||
|
||||
/// The open song as a bundle (.szgz): project.szg, every sample its Sampler,
|
||||
/// SF2/XI, Grain Cloud and Wavetable slots use (samples/<n>.wav) and
|
||||
/// samples/manifest.txt (`<n>\t<sample id>` per line).
|
||||
- (nullable NSData *)projectBundleData;
|
||||
/// Replace the open song with a bundle's: its samples are stored under their ids
|
||||
/// first, so the song finds them. Leaves the song alone if it isn't a bundle.
|
||||
- (BOOL)importProjectBundleData:(NSData *)data error:(NSError **)error;
|
||||
/// True for a ZIP archive (bundle or backup) rather than text.
|
||||
+ (BOOL)isZipData:(NSData *)data;
|
||||
|
||||
/// Everything Sizzle keeps: Documents/songs, themes, presets and samples, the
|
||||
/// autosaved song, and [settings] as settings.txt. The open song is autosaved first.
|
||||
- (nullable NSData *)backupDataWithSettings:(NSString *)settings;
|
||||
/// Restore a backup: it is unpacked aside first and only swapped in once it looks
|
||||
/// like one, so a wrong file can't destroy anything. The restored autosave becomes
|
||||
/// the open song. Returns the backup's settings text ("" if it has none), or nil.
|
||||
- (nullable NSString *)restoreBackupData:(NSData *)data error:(NSError **)error;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user