AudioModel

Audio object3D ModelComponent

Constructor

new AudioModel(json)

Audio model component

Parameters:
NameTypeDescription
jsonobject

json object to configure model

Properties
NameTypeAttributesDescription
uuidstring

uuid model

soundsArray.<string><optional>

array of sound id needed for this component

confobject

configuration of sounds

Members

conf :object

configuration of sounds

Type:
  • object

soundsJSON :Array.<string>

array of sound id needed for this component

Type:
  • Array.<string>

Methods

getConf() → {object}

Returns:
  • configuration model
Type: 
object

getSoundsJSON() → {Array.<string>}

Returns:
  • sounds id model
Type: 
Array.<string>

toJSON() → {object}

Returns:
  • export model to json object
Type: 
object