Input Ingestion & Binary Metadata Peek
BinaryMetadataPeeker.swift
Identifies the source sampler format across all 9 verified sampler ecosystems (Kontakt 5–8 NISound, AudioUnit .component, Logic Sampler .exs, EastWest Opus .opb,
VSL Synchron .nksf, NI Battery 4 .nbkt, BFD3 Drums .bfd3kit, Universal NKS .nksf, Decent Sampler .dspreset). For .nki files, reads the local Kontakt SQLite database,
walks up 5 levels for .nicnt XML ProductHints, and scans the first 16KB UTF-16LE DSIN header using alignment-safe byte reads on ARM64 to extract canonical Preset, Library, and Vendor strings while ignoring promo URLs and composer credits.
- Strips legacy
_LOCKsuffixes &W64/K11header noise - Authoritative Kontakt 8 DB overrides raw header guess
- Unlocks non-NKI samplers from Tier 1 onward
- Preserves Native Access Content Dir remapping