Interface Sound

Hierarchy

Index

Properties

Methods

Properties

public allowBackground: boolean

public bubbleParent: boolean

public duration: number

public looping: boolean

public paused: boolean

public playing: boolean

public time: number

public url: string

public volume: number

Methods

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public applyProperties(props: Dictionary)

Parameters

public fireEvent(name: string, event: Dictionary)

Parameters

public getBubbleParent(): boolean

Returns

boolean

public getDuration(): number

Returns

number

public getTime(): number

Returns

number

public getUrl(): string

Returns

string

public getVolume(): number

Returns

number

public isLooping(): boolean

Returns

boolean

public isPaused(): boolean

Returns

boolean

public isPlaying(): boolean

Returns

boolean

public pause()

public play()

public release()

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public reset()

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setLooping(looping: boolean)

Parameters

  • looping: boolean

public setPaused(paused: boolean)

Parameters

  • paused: boolean

public setTime(time: number)

Parameters

  • time: number

public setUrl(url: string)

Parameters

  • url: string

public setVolume(volume: number)

Parameters

  • volume: number

public stop()