0.39.1 (74): preset bundles between Android and iOS, both ways
iOS couldn't import Android's Sampler preset bundle (a ZIP with the .szp and its WAVs) and shared sample presets as bare text naming iOS sample ids. - core/src/io/PresetBundle: import/export in Android's bundle layout (padNFile / sfFile), used by iOS IMPORT and SHARE - bundle_test imports a bundle written by Android's PresetLibrary (IosGoldenPresetBundle); PresetBundleInteropTest imports the iOS-written fixture with Android's importZip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6688718bed
commit
5240019b47
@@ -41,6 +41,13 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (BOOL)importPresetText:(NSString *)text intoSlot:(NSInteger)slot;
|
||||
/// The preset's file, for sharing (nil when missing).
|
||||
- (nullable NSURL *)presetFileForType:(NSString *)type name:(NSString *)name;
|
||||
/// Import a picked preset file into [slot]: preset text, or a bundle (a ZIP with
|
||||
/// the preset and its WAVs, as Android shares Sampler, SF2/XI, Grain Cloud and
|
||||
/// Wavetable presets). Saved to the library like importPresetText.
|
||||
- (BOOL)importPresetData:(NSData *)data intoSlot:(NSInteger)slot;
|
||||
/// What SHARE sends for a saved preset: a bundle with its sounds (Android's
|
||||
/// layout) for the device types that carry samples, else the .szp itself.
|
||||
- (nullable NSURL *)presetShareURLForType:(NSString *)type name:(NSString *)name;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user