SgAudioListener

Reference

class SgAudioListener
module:
create(options, parent)

Create a new audio listener object in the scenegraph.

Parameters:
  • options (table) – A table of options to fill the parameters

  • parent (SceneObject) – The parent scene object to add this to

Returns:

a promise which will resolve to the created object

Return type:

Promise

fromObject(obj)

Create an audio listener object from another scene object

Parameters:

obj (SceneObject) – The scene object to convert

fromHandle(handle, nodeId)

create an audio listener object from a handle. Used internally.

Parameters:
  • handle (number)

  • nodeId (str)

Returns:

result listener object

Return type:

SgAudioListener

Examples