cacophony
    Preparing search index...

    Class AudioSprite<K>

    A typed registry and lifetime owner for the ordinary Sounds in an atlas. Playback and configuration remain child-Sound operations.

    Type Parameters

    • K extends string = string
    Index
    • Internal

      Construct sprites through Cacophony.createSprite().

      Type Parameters

      • K extends string = string

      Parameters

      • sounds: Record<K, Sound>
      • names: readonly K[]

      Returns AudioSprite<K>

    names: readonly K[]
    sounds: Readonly<Record<K, Sound>>