SdatSseqFile

data class SdatSseqFile(val name: String, val data: ByteArray, val unk: Int, val bank: Int, val volume: Int, val channelPriority: Int, val playerPriority: Int, val players: Int)

Represents a single Nintendo DS sequence (SSEQ) file extracted from an SDAT archive.

Constructors

Link copied to clipboard
constructor(name: String, data: ByteArray, unk: Int, bank: Int, volume: Int, channelPriority: Int, playerPriority: Int, players: Int)

Properties

Link copied to clipboard
val bank: Int

The index of the associated SBNK bank.

Link copied to clipboard

Priority used when allocating hardware channels.

Link copied to clipboard

The raw SSEQ file bytes.

Link copied to clipboard

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

Link copied to clipboard

Priority used by the sequence player.

Link copied to clipboard

Bitmask of allowed players.

Link copied to clipboard
val unk: Int

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

Link copied to clipboard
val volume: Int

Playback volume (0–127).

Functions

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

Compares two SdatSseqFile 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
fun toMidi(loopCount: Int = 1): ByteArray

Converts this SSEQ sequence file to a Standard MIDI File (SMF).

Link copied to clipboard
fun toSf2(archive: SdatArchive): ByteArray

Convenience wrapper that resolves this sequence's instrument bank and associated wave archives from archive, then converts the bank to a SoundFont 2 (SF2) file.