SdatStrmFile

data class SdatStrmFile(val name: String, val data: ByteArray, val unk: Int, val volume: Int, val priority: Int, val players: Int)

Represents a single Nintendo DS stream (STRM) file extracted from an SDAT archive.

Constructors

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

Properties

Link copied to clipboard

The raw STRM file bytes.

Link copied to clipboard

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

Link copied to clipboard

Player assignment bitmask.

Link copied to clipboard

Playback priority.

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 SdatStrmFile 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

Decodes this STRM file and returns the audio as a standard 16-bit PCM WAV byte array.