Skip to content

Class: StaticAudio

Static audio component, volume level does not vary depending on the position of the monitor

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new StaticAudio()

Overrides

ComponentBase.constructor

Defined in

packages/media-extention/StaticAudio.ts:19

Properties

context

context: AudioContext = null

Defined in

packages/media-extention/StaticAudio.ts:9


gainNode

gainNode: GainNode = null

Defined in

packages/media-extention/StaticAudio.ts:10


source

source: AudioBufferSourceNode = null

Defined in

packages/media-extention/StaticAudio.ts:11


playing

playing: boolean = false

Defined in

packages/media-extention/StaticAudio.ts:16


object3D

object3D: Object3D = null

owner object3D

Inherited from

ComponentBase.object3D

Defined in

src/components/ComponentBase.ts:17


isDestroyed

Optional isDestroyed: boolean

Inherited from

ComponentBase.isDestroyed

Defined in

src/components/ComponentBase.ts:38

Accessors

eventDispatcher

get eventDispatcher(): CEventDispatcher

Returns

CEventDispatcher

Inherited from

ComponentBase.eventDispatcher

Defined in

src/components/ComponentBase.ts:23

set eventDispatcher(value): void

Parameters

NameType
valueCEventDispatcher

Returns

void

Inherited from

ComponentBase.eventDispatcher

Defined in

src/components/ComponentBase.ts:28


isStart

get isStart(): boolean

Returns

boolean

Inherited from

ComponentBase.isStart

Defined in

src/components/ComponentBase.ts:40


transform

get transform(): Transform

Return the Transform component attached to the Object3D.

Returns

Transform

Inherited from

ComponentBase.transform

Defined in

src/components/ComponentBase.ts:47


enable

get enable(): boolean

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Returns

boolean

Inherited from

ComponentBase.enable

Defined in

src/components/ComponentBase.ts:68

set enable(value): void

Enable/disable components. The enabled components can be updated, while the disabled components cannot be updated.

Parameters

NameType
valueboolean

Returns

void

Inherited from

ComponentBase.enable

Defined in

src/components/ComponentBase.ts:54

Methods

setLisenter

setLisenter(listener): StaticAudio

Parameters

NameType
listenerAudioListener

Returns

StaticAudio

Defined in

packages/media-extention/StaticAudio.ts:22


load

load(url, options?): Promise<void>

Parameters

NameType
urlstring
optionsObject

Returns

Promise<void>

Defined in

packages/media-extention/StaticAudio.ts:40


loadBuffer

loadBuffer(buffer, options?): Promise<void>

Parameters

NameType
bufferArrayBuffer
optionsObject

Returns

Promise<void>

Defined in

packages/media-extention/StaticAudio.ts:46


play

play(): StaticAudio

Returns

StaticAudio

Defined in

packages/media-extention/StaticAudio.ts:55


pause

pause(): StaticAudio

Returns

StaticAudio

Defined in

packages/media-extention/StaticAudio.ts:78


stop

stop(): StaticAudio

Returns

StaticAudio

Overrides

ComponentBase.stop

Defined in

packages/media-extention/StaticAudio.ts:89


setVolume

setVolume(value): StaticAudio

Parameters

NameType
valuenumber

Returns

StaticAudio

Defined in

packages/media-extention/StaticAudio.ts:94


destroy

destroy(force?): void

Parameters

NameType
force?boolean

Returns

void

Overrides

ComponentBase.destroy

Defined in

packages/media-extention/StaticAudio.ts:105


init

init(param?): void

Parameters

NameType
param?any

Returns

void

Inherited from

ComponentBase.init

Defined in

src/components/ComponentBase.ts:112


start

start(): void

Returns

void

Inherited from

ComponentBase.start

Defined in

src/components/ComponentBase.ts:113


onEnable

Optional onEnable(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

ComponentBase.onEnable

Defined in

src/components/ComponentBase.ts:115


onDisable

Optional onDisable(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

ComponentBase.onDisable

Defined in

src/components/ComponentBase.ts:116


onUpdate

Optional onUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

ComponentBase.onUpdate

Defined in

src/components/ComponentBase.ts:117


onLateUpdate

Optional onLateUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

ComponentBase.onLateUpdate

Defined in

src/components/ComponentBase.ts:118


onBeforeUpdate

Optional onBeforeUpdate(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

ComponentBase.onBeforeUpdate

Defined in

src/components/ComponentBase.ts:119


onCompute

Optional onCompute(view?, command?): any

Parameters

NameType
view?View3D
command?GPUCommandEncoder

Returns

any

Inherited from

ComponentBase.onCompute

Defined in

src/components/ComponentBase.ts:120


onGraphic

Optional onGraphic(view?): any

Parameters

NameType
view?View3D

Returns

any

Inherited from

ComponentBase.onGraphic

Defined in

src/components/ComponentBase.ts:121


onParentChange

Optional onParentChange(lastParent?, currentParent?): any

Parameters

NameType
lastParent?Object3D
currentParent?Object3D

Returns

any

Inherited from

ComponentBase.onParentChange

Defined in

src/components/ComponentBase.ts:122


cloneTo

cloneTo(obj): void

clone component data to target object3D

Parameters

NameTypeDescription
objObject3Dtarget object3D

Returns

void

Inherited from

ComponentBase.cloneTo

Defined in

src/components/ComponentBase.ts:129


copyComponent

copyComponent(from): StaticAudio

Parameters

NameType
fromStaticAudio

Returns

StaticAudio

Inherited from

ComponentBase.copyComponent

Defined in

src/components/ComponentBase.ts:131


beforeDestroy

beforeDestroy(force?): void

before release this component, object refrences are not be set null now.

Parameters

NameType
force?boolean

Returns

void

Inherited from

ComponentBase.beforeDestroy

Defined in

src/components/ComponentBase.ts:198

Released under the MIT License