SdatSbnkFile

data class SdatSbnkFile(val name: String, val data: ByteArray, val unk: Int, val wars: List<Int>)

Represents a single Nintendo DS sound bank (SBNK) file extracted from an SDAT archive.

Constructors

Link copied to clipboard
constructor(name: String, data: ByteArray, unk: Int, wars: List<Int>)

Properties

Link copied to clipboard

The raw SBNK file bytes.

Link copied to clipboard

The symbolic name from the SYMB block, or a generated fallback such as "SBNK_0".

Link copied to clipboard
val unk: Int

Unknown reserved field (u16) from the INFO entry at offset +2.

Link copied to clipboard
val wars: List<Int>

Indices of the up to four associated SWAR wave archives; -1 indicates an unused slot.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares two SdatSbnkFile instances for structural equality, including data content.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code consistent with equals.

Link copied to clipboard

Converts this SBNK instrument bank to a SoundFont 2 (SF2) file.