Class KSS

Hierarchy

  • KSS

Constructors

  • Create a new KSS object.

    Parameters

    • data: Uint8Array

      the KSS file binary.

    • filename: string

      the name of the KSS file (used only for determine file type).

    • song: number = 0

      internal song index. (0 to 255)

    Returns KSS

Properties

data: Uint8Array
hasMultiSongs: boolean = false
hash: string = ''
obj: any
song: number
hashMap: {
    [key: string]: KSS;
} = {}

Type declaration

  • [key: string]: KSS

Methods

  • get title string of the KSS file. This function assumes the title string of KSS is simple ASCII or SJIS encoded.

    Returns

    The title string if exists.

    Returns string

  • Release the object. Without calling this method will cause memory-leak.

    Returns void

  • Convert KSS to VGM (blocking)

    Returns

    VGM data.

    Parameters

    Returns Uint8Array

  • Convert KSS to VGM (non-blocking)

    Returns

    Promise for VGM data or null if the conversion process is aborted.

    Parameters

    Returns Promise<null | Uint8Array>

  • Create a unique KSS object. If the same data is given, this function returns the same KSS instance.

    Returns

    A KSS instance.

    Parameters

    • data: Uint8Array

      the KSS file binary.

    • filename: string

      the name of the KSS file.

    • song: number = 0

    Returns KSS

  • Destory all the cached KSS instances that generated from this library.

    Returns void

Generated using TypeDoc