Interface Sound

All Superinterfaces:
X3DChildNode, X3DNode, X3DSoundNode
All Known Implementing Classes:
Sound

public interface Sound
extends X3DSoundNode
The Sound node controls the 3D spatialization of sound playback by a child AudioClip or MovieTexture node.

X3D node tooltip: [X3DSoundNode] The Sound node controls the 3D spatialization of sound playback by a child AudioClip or MovieTexture node. Sound intensity includes stereo support, varying according to user location and view direction in the scene.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
SAI Java Specification, X3D Abstract Specification: Sound, X3D Tooltips: Sound, X3D Scene Authoring Hints: Audio
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDescription()
    Provide String value from inputOutput SFString field named description.
    float[] getDirection()
    Provide array of 3-tuple float results from inputOutput SFVec3f field named direction.
    boolean getEnabled()
    Provide boolean value from inputOutput SFBool field named enabled.
    float getGain()
    Provide float value from inputOutput SFFloat field named gain.
    float getIntensity()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named intensity.
    float[] getLocation()
    Provide array of 3-tuple float results from inputOutput SFVec3f field named location.
    float getMaxBack()
    Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named maxBack.
    float getMaxFront()
    Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named maxFront.
    X3DMetadataObject getMetadata()
    Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    float getMinBack()
    Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named minBack.
    float getMinFront()
    Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named minFront.
    float getPriority()
    Provide float value within allowed range of [0,1] from inputOutput SFFloat field named priority.
    X3DSoundSourceNode getSource()
    Provide org.web3d.x3d.sai.Sound.X3DSoundSourceNode instance (using a properly typed node) from inputOutput SFNode field source.
    boolean getSpatialize()
    Provide boolean value from initializeOnly SFBool field named spatialize.
    Sound setDescription​(java.lang.String newValue)
    Accessor method to assign String value to inputOutput SFString field named description.
    Sound setDirection​(float[] newValue)
    Accessor method to assign 3-tuple float array to inputOutput SFVec3f field named direction.
    Sound setEnabled​(boolean newValue)
    Accessor method to assign boolean value to inputOutput SFBool field named enabled.
    Sound setGain​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named gain.
    Sound setIntensity​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named intensity.
    Sound setLocation​(float[] newValue)
    Accessor method to assign 3-tuple float array to inputOutput SFVec3f field named location.
    Sound setMaxBack​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named maxBack.
    Sound setMaxFront​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named maxFront.
    Sound setMetadata​(X3DMetadataObject newValue)
    Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
    Sound setMinBack​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named minBack.
    Sound setMinFront​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named minFront.
    Sound setPriority​(float newValue)
    Accessor method to assign float value to inputOutput SFFloat field named priority.
    Sound setSource​(X3DSoundSourceNode newValue)
    Accessor method to assign org.web3d.x3d.sai.Sound.X3DSoundSourceNode instance (using a properly typed node) to inputOutput SFNode field source.
    Sound setSpatialize​(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named spatialize.
  • Method Details

    • getDescription

      java.lang.String getDescription()
      Provide String value from inputOutput SFString field named description.
      Specified by:
      getDescription in interface X3DSoundNode
      Returns:
      value of description field
    • setDescription

      Sound setDescription​(java.lang.String newValue)
      Accessor method to assign String value to inputOutput SFString field named description.
      Specified by:
      setDescription in interface X3DSoundNode
      Parameters:
      newValue - is new value for the description field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getDirection

      float[] getDirection()
      Provide array of 3-tuple float results from inputOutput SFVec3f field named direction.

      Tooltip: direction of sound axis, relative to local coordinate system. *
      Returns:
      value of direction field
    • setDirection

      Sound setDirection​(float[] newValue)
      Accessor method to assign 3-tuple float array to inputOutput SFVec3f field named direction.

      Tooltip: direction of sound axis, relative to local coordinate system. *
      Parameters:
      newValue - is new value for the direction field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getEnabled

      boolean getEnabled()
      Provide boolean value from inputOutput SFBool field named enabled.
      Specified by:
      getEnabled in interface X3DSoundNode
      Returns:
      value of enabled field
    • setEnabled

      Sound setEnabled​(boolean newValue)
      Accessor method to assign boolean value to inputOutput SFBool field named enabled.
      Specified by:
      setEnabled in interface X3DSoundNode
      Parameters:
      newValue - is new value for the enabled field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getGain

      float getGain()
      Provide float value from inputOutput SFFloat field named gain.
      Specified by:
      getGain in interface X3DSoundNode
      Returns:
      value of gain field
    • setGain

      Sound setGain​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named gain.
      Specified by:
      setGain in interface X3DSoundNode
      Parameters:
      newValue - is new value for the gain field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getIntensity

      float getIntensity()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named intensity.

      Tooltip: Factor [0,1] adjusting loudness (decibels) of emitted sound. *
      Returns:
      value of intensity field
    • setIntensity

      Sound setIntensity​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named intensity.

      Tooltip: Factor [0,1] adjusting loudness (decibels) of emitted sound. *
      Parameters:
      newValue - is new value for the intensity field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getLocation

      float[] getLocation()
      Provide array of 3-tuple float results from inputOutput SFVec3f field named location.

      Tooltip: Position of sound ellipsoid center, relative to local coordinate system.
      • Hint: improve audibility by setting location='0 1.6 0' so that center height of sound ellipsoid matches typical NavigationInfo avatarSize height.
      Returns:
      value of location field
    • setLocation

      Sound setLocation​(float[] newValue)
      Accessor method to assign 3-tuple float array to inputOutput SFVec3f field named location.

      Tooltip: Position of sound ellipsoid center, relative to local coordinate system.
      • Hint: improve audibility by setting location='0 1.6 0' so that center height of sound ellipsoid matches typical NavigationInfo avatarSize height.
      Parameters:
      newValue - is new value for the location field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getMaxBack

      float getMaxBack()
      Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named maxBack.

      Tooltip: Outer (zero loudness)ellipsoid distance along back direction.
      • Warning: ensure minBack <= maxBack.
      Returns:
      value of maxBack field
    • setMaxBack

      Sound setMaxBack​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named maxBack.

      Tooltip: Outer (zero loudness)ellipsoid distance along back direction.
      • Warning: ensure minBack <= maxBack.
      Parameters:
      newValue - is new value for the maxBack field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getMaxFront

      float getMaxFront()
      Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named maxFront.

      Tooltip: Outer (zero loudness)ellipsoid distance along front direction.
      • Warning: ensure minFront <= maxFront.
      Returns:
      value of maxFront field
    • setMaxFront

      Sound setMaxFront​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named maxFront.

      Tooltip: Outer (zero loudness)ellipsoid distance along front direction.
      • Warning: ensure minFront <= maxFront.
      Parameters:
      newValue - is new value for the maxFront field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getMetadata

      X3DMetadataObject getMetadata()
      Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.

      Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
      Specified by:
      getMetadata in interface X3DChildNode
      Specified by:
      getMetadata in interface X3DNode
      Specified by:
      getMetadata in interface X3DSoundNode
      Returns:
      value of metadata field
      See Also:
      X3D Scene Authoring Hints: Metadata Nodes
    • setMetadata

      Sound setMetadata​(X3DMetadataObject newValue)
      Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.

      Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
      Specified by:
      setMetadata in interface X3DChildNode
      Specified by:
      setMetadata in interface X3DNode
      Specified by:
      setMetadata in interface X3DSoundNode
      Parameters:
      newValue - is new value for the metadata field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      See Also:
      X3D Scene Authoring Hints: Metadata Nodes
    • getMinBack

      float getMinBack()
      Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named minBack.

      Tooltip: Inner (full loudness) ellipsoid distance along back direction.
      • Warning: ensure minBack <= maxBack.
      Returns:
      value of minBack field
    • setMinBack

      Sound setMinBack​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named minBack.

      Tooltip: Inner (full loudness) ellipsoid distance along back direction.
      • Warning: ensure minBack <= maxBack.
      Parameters:
      newValue - is new value for the minBack field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getMinFront

      float getMinFront()
      Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named minFront.

      Tooltip: Inner (full loudness) ellipsoid distance along front direction.
      • Warning: ensure minFront <= maxFront.
      Returns:
      value of minFront field
    • setMinFront

      Sound setMinFront​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named minFront.

      Tooltip: Inner (full loudness) ellipsoid distance along front direction.
      • Warning: ensure minFront <= maxFront.
      Parameters:
      newValue - is new value for the minFront field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getPriority

      float getPriority()
      Provide float value within allowed range of [0,1] from inputOutput SFFloat field named priority.

      Tooltip: Player hint [0,1] if needed to choose which sounds to play. *
      Returns:
      value of priority field
    • setPriority

      Sound setPriority​(float newValue)
      Accessor method to assign float value to inputOutput SFFloat field named priority.

      Tooltip: Player hint [0,1] if needed to choose which sounds to play. *
      Parameters:
      newValue - is new value for the priority field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getSource

      X3DSoundSourceNode getSource()
      Provide org.web3d.x3d.sai.Sound.X3DSoundSourceNode instance (using a properly typed node) from inputOutput SFNode field source.

      Tooltip: [X3DSoundSourceNode] sound source for the Sound node, either an AudioClip node or a MovieTexture node.
      • Warning: if source field is not specified, the Sound node does not emit audio.
      Returns:
      value of source field
    • setSource

      Sound setSource​(X3DSoundSourceNode newValue)
      Accessor method to assign org.web3d.x3d.sai.Sound.X3DSoundSourceNode instance (using a properly typed node) to inputOutput SFNode field source.

      Tooltip: [X3DSoundSourceNode] sound source for the Sound node, either an AudioClip node or a MovieTexture node.
      • Warning: if source field is not specified, the Sound node does not emit audio.
      Parameters:
      newValue - is new value for the source field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getSpatialize

      boolean getSpatialize()
      Provide boolean value from initializeOnly SFBool field named spatialize.

      Tooltip: Whether to spatialize sound playback relative to viewer.
      • Hint: only effective within the auralization volume.
      Returns:
      value of spatialize field
    • setSpatialize

      Sound setSpatialize​(boolean newValue)
      Accessor method to assign boolean value to initializeOnly SFBool field named spatialize.

      Tooltip: Whether to spatialize sound playback relative to viewer.
      • Hint: only effective within the auralization volume.
      Parameters:
      newValue - is new value for the spatialize field.
      Returns:
      Sound - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).