Class: Sound

X3D: 3.3
Component: Sound
Status:
experimental

x3dom.nodeTypes. Sound

The Sound node specifies the spatial presentation of a sound in a X3D scene.

HTML Encoding and Default Values

<Sound metadata='X3DMetadataObject' source='x3dom.nodeTypes.X3DSoundSourceNode' ></Sound>

Inheritance


Constructor

Sound(ctx)

Constructor for Sound

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
metadata SFNode X3DMetadataObject X3DSoundNode Field to add metadata information
source SFNode X3DSoundSourceNode The source field specifies the sound source for the Sound node. If the source field is not specified, the Sound node will not emit audio. The source field shall specify either an AudioClip node or a MovieTexture node. If a MovieTexture node is specified as the sound source, the MovieTexture shall refer to a movie format that supports sound.