Class WebAudioPlugin

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): WebAudioPlugin

Returns

WebAudioPlugin

Properties

public context: any

public dynamicsCompressorNode: any

public gainNode: any

Methods

public addPreloadResults(src: string): boolean

Parameters

  • src: string

Returns

boolean

public create(src: string): SoundInstance

Parameters

  • src: string

Returns

SoundInstance

public getVolume(): number

Returns

number

public isPreloadComplete(src: string): boolean

Parameters

  • src: string

Returns

boolean

public isPreloadStarted(src: string): boolean

Parameters

  • src: string

Returns

boolean

public static isSupported(): boolean

Returns

boolean

public playEmptySound()

public preload(src: string, instance: Object)

Parameters

  • src: string
  • instance: Object

public register(src: string, instances: number): Object

Parameters

  • src: string
  • instances: number

Returns

Object

public removeAllSounds(src: string)

Parameters

  • src: string

public removeSound(src: string)

Parameters

  • src: string

public setMute(value: boolean): boolean

Parameters

  • value: boolean

Returns

boolean

public setVolume(value: number): boolean

Parameters

  • value: number

Returns

boolean