Constructors

Properties

audioClipPlayers: {
    [path: string]: InternalClipPlayer;
} = {}

Type declaration

  • [path: string]: InternalClipPlayer
cogsConnection: CogsConnection<any, Record<never, never>>
eventTarget: EventTarget = ...
globalVolume: number = 1
sinkId: string = ''

Methods

  • Type Parameters

    • EventName extends keyof EventTypes

    Parameters

    • type: EventName
    • listener: ((ev) => void)
        • (ev): void
        • Parameters

          Returns void

    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • file: string
    • config: {
          ephemeral: boolean;
          preload: boolean;
      }
      • ephemeral: boolean
      • preload: boolean

    Returns InternalClipPlayer

  • Parameters

    • path: string
    • config: {
          preload: boolean;
      }
      • preload: boolean

    Returns Howl

  • Parameters

    • path: string
    • playId: string
    • soundId: number

    Returns void

  • Parameters

    • playId: string
    • file: string
    • status: MediaStatus

    Returns void

  • Parameters

    • path: string
    • __namedParameters: {
          fade?: number;
      }
      • Optional fade?: number
    • Optional onlySoundId: number
    • Optional allowIfPauseRequested: boolean

    Returns void

  • Parameters

    • path: string
    • __namedParameters: {
          fade?: number;
          loop: boolean;
          playId: string;
          volume: number;
      }
      • Optional fade?: number
      • loop: boolean
      • playId: string
      • volume: number

    Returns void

  • Type Parameters

    • EventName extends keyof EventTypes

    Parameters

    • type: EventName
    • listener: ((ev) => void)
        • (ev): void
        • Parameters

          Returns void

    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • path: string
    • __namedParameters: {
          fade?: number;
          volume: number;
      }
      • Optional fade?: number
      • volume: number

    Returns void

  • Parameters

    • options: {
          fade?: number;
      }
      • Optional fade?: number

    Returns void

  • Parameters

    • path: string
    • __namedParameters: {
          fade?: number;
      }
      • Optional fade?: number
    • Optional onlySoundId: number
    • Optional allowIfStopRequested: boolean

    Returns void

  • Parameters

    • path: string
    • update: ((player) => InternalClipPlayer)
        • (player): InternalClipPlayer
        • Parameters

          • player: InternalClipPlayer

          Returns InternalClipPlayer

    Returns void

  • Parameters

    • newFiles: {
          [path: string]: Media;
      }
      • [path: string]: Media

    Returns void

  • Parameters

    • clipPath: string
    • previousClip: InternalClipPlayer
    • newConfig: {
          ephemeral: boolean;
          preload: boolean;
      }
      • ephemeral: boolean
      • preload: boolean

    Returns InternalClipPlayer

Generated using TypeDoc