rednode API - v0.80.1
    Preparing search index...

    Interface SoundState

    What archives.soundState read: the game's sound pak index and the paks it has open. Experimental: a diagnostic for the research into swapping sound paks (H1c), so its shape may change. The sound fields follow the index file's columns (0.26.8's "at" in a game run matched the decoded size of the katana sound in the game's archive, so the names moved in 0.26.9); the pak fields past pak are guesses from the game's code.

    interface SoundState {
        held: number | null;
        indexes: {
            at: string;
            bytes: number;
            checksum: string | null;
            second: number;
            sounds: number;
        }[];
        infoHash: string;
        infoPathOk: boolean;
        paks: {
            flag: number;
            index: number;
            pak: number;
            reader: string;
            refs: number;
            row: number;
            serial: number;
            slot: number;
        }[];
        sounds: (
            | { found: false; id: number }
            | {
                decodedBytes: number;
                found: true;
                headerSize: number;
                held: number | null;
                id: number;
                index: number;
                length: number;
                offset: number;
                pak: number;
                row: number;
            }
        )[];
        summary: string;
    }
    Index
    held: number | null

    How many sounds the game holds loaded (in memory, with references), or null when REDnode does not know this game version's table of them. A held sound keeps the data it was loaded with until the game lets it go, even after the index is read again.

    indexes: {
        at: string;
        bytes: number;
        checksum: string | null;
        second: number;
        sounds: number;
    }[]

    The loaded index: one entry once the game has started.

    Type Declaration

    • at: string

      Where its tables are, as hex.

    • bytes: number

      The size of its tables in memory.

    • checksum: string | null

      A checksum of its tables, as hex: it changes when the index is read again from a new file.

    • second: number

      Entries of its second table.

    • sounds: number

      Sounds in the index.

    infoHash: string

    The resource path hash the game loads its index from, as hex.

    infoPathOk: boolean

    Whether that hash is base\sound\soundbanks\sfx_container.opusinfo's.

    paks: {
        flag: number;
        index: number;
        pak: number;
        reader: string;
        refs: number;
        row: number;
        serial: number;
        slot: number;
    }[]

    The paks the game has open: pak is the n of sfx_container_<n>.opuspak.

    Type Declaration

    • flag: number
    • index: number
    • pak: number
    • reader: string

      The game's reader for the file, as hex: a new one means the pak was opened again.

    • refs: number

      How many users hold it open.

    • row: number
    • serial: number
    • slot: number
    sounds: (
        | { found: false; id: number }
        | {
            decodedBytes: number;
            found: true;
            headerSize: number;
            held: number | null;
            id: number;
            index: number;
            length: number;
            offset: number;
            pak: number;
            row: number;
        }
    )[]

    The sound ids asked for, where the index puts each, and how many references hold it loaded (0: not loaded). offset is where the sound starts in its pak, headerSize the size of its RIFF header (the Ogg Opus stream follows it), length its size in the pak with the header, and decodedBytes its size decoded.

    summary: string

    One line for logs, as the plugin log has it.