Skip to main content

AudioManager

class AudioManager 

Constructors

constructor

public new AudioManagerlogger: Logger: AudioManager

Parameters

Accessors

onDataChanged

public get onDataChanged(): SubscribableValueEventnullAudioData

Methods

getTime

public getTime(): number

isInRange

public isInRangetime: number: boolean

Parameters


isReady

public isReady(): nullboolean''

setMuted

public setMutedisMuted: boolean: void

Parameters


setOffset

public setOffsetvalue: number: void

Parameters


setPaused

public setPausedisPaused: boolean: Promiseboolean

Pause/resume the audio.

Parameters

  • isPaused: boolean

    Whether the audio should be paused or resumed.


setSource

public setSourcesrc: string: void

Parameters


setTime

public setTimevalue: number: void

Parameters


setVolume

public setVolumevolume: number: void

Parameters


toAbsoluteTime

public toAbsoluteTimetime: number: number

Parameters


toRelativeTime

public toRelativeTimetime: number: number

Parameters