element SpatialSound
diagram x3d-4.0_diagrams/x3d-4.0_p224.png
type extension of X3DSoundNode
properties
content complex
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString Analyser AudioClip AudioDestination BiquadFilter BufferAudioSource ChannelMerger ChannelSelector ChannelSplitter Convolver Delay DynamicsCompressor Gain ListenerPointSource MicrophoneSource MovieTexture OscillatorSource Sound SpatialSound StreamAudioDestination StreamAudioSource WaveShaper ProtoInstance
used by
groups AudioGraphContentModel ChildContentModelFull
attributes
Name  Type  Use  Default  Fixed  Annotation
DEF  xs:ID        
appinfo

                    DEF defines a unique ID name for each node, referenceable by other nodes.
               
USE  xs:IDREF        
appinfo

                    USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).
               
class  xs:NMTOKENS        
appinfo

                    The class attribute is a space-separated list of classes, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
id  xs:NMTOKEN        
appinfo

                    The id attribute is a unique identifier, reserved for use by HTML5/DOM pages, independent of DEF labeling and internal X3D node referencing.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
style  SFString        
appinfo

                    The style attribute provides an inline block of CSS for element styling, reserved for use by Cascading Style Sheets (CSS) and XML stylesheets.
                    This attribute is only functional if the X3D model is loaded within an HTML page.
               
description  SFString        
enabled  SFBool    true    
coneInnerAngle  derived by: SFFloat    6.2832    
appinfo
range [0..2pi]
coneOuterAngle  derived by: SFFloat    6.2832    
appinfo
range [0..2pi]
coneOuterGain  SFFloat    0    
direction  SFVec3f    0 0 1    
distanceModel  distanceModelChoices    INVERSE    
dopplerEnabled  SFBool    false    
enableHRTF  SFBool    false    
gain  SFFloat    1    
intensity  unitIntervalType    1    
location  SFVec3f    0 0 0    
maxDistance  derived by: SFFloat    10000    
priority  unitIntervalType    0    
referenceDistance  derived by: SFFloat    1    
rolloffFactor  derived by: SFFloat    1    
spatialize  SFBool    true    
containerField  xs:NMTOKEN    children    
annotation
appinfo
<xs:element name="children" type="MFNode" fixed="inputOutputField" default="Analyser|AudioClip|AudioDestination|BiquadFilter|BufferAudioSource|ChannelMerger|ChannelSelector|ChannelSplitter|Convolver|Delay|DynamicsCompressor|Gain|ListenerPointSource|MicrophoneSource|MovieTexture|OscillatorSource|Sound|SpatialSound|StreamAudioDestination|StreamAudioSource|WaveShaper"/>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
source <xs:element name="SpatialSound">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:element name="children" type="MFNode" fixed="inputOutputField" default="Analyser|AudioClip|AudioDestination|BiquadFilter|BufferAudioSource|ChannelMerger|ChannelSelector|ChannelSplitter|Convolver|Delay|DynamicsCompressor|Gain|ListenerPointSource|MicrophoneSource|MovieTexture|OscillatorSource|Sound|SpatialSound|StreamAudioDestination|StreamAudioSource|WaveShaper"/>
     
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
     
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
   
</xs:appinfo>
   
<xs:documentation source="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/sound.html#Sound"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DSoundNode">
       
<xs:group ref="AudioGraphContentModel" minOccurs="0" maxOccurs="unbounded">
         
<xs:annotation>
           
<xs:documentation>children inputs</xs:documentation>
         
</xs:annotation>
       
</xs:group>
       
<xs:attribute name="coneInnerAngle" default="6.2832">
         
<xs:annotation>
           
<xs:appinfo>range [0..2pi]</xs:appinfo>
         
</xs:annotation>
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
             
<xs:maxInclusive value="6.2832"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="coneOuterAngle" default="6.2832">
         
<xs:annotation>
           
<xs:appinfo>range [0..2pi]</xs:appinfo>
         
</xs:annotation>
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
             
<xs:maxInclusive value="6.2832"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="coneOuterGain" type="SFFloat" default="0"/>
       
<xs:attribute name="direction" type="SFVec3f" default="0 0 1"/>
       
<xs:attribute name="distanceModel" type="distanceModelChoices" default="INVERSE"/>
       
<xs:attribute name="dopplerEnabled" type="SFBool" default="false"/>
       
<xs:attribute name="enableHRTF" type="SFBool" default="false"/>
       
<xs:attribute name="gain" type="SFFloat" default="1"/>
       
<xs:attribute name="intensity" type="unitIntervalType" default="1"/>
       
<xs:attribute name="location" type="SFVec3f" default="0 0 0"/>
       
<xs:attribute name="maxDistance" default="10000">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="priority" type="unitIntervalType" default="0"/>
       
<xs:attribute name="referenceDistance" default="1">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="rolloffFactor" default="1">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="spatialize" type="SFBool" default="true"/>
       
<xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
     
</xs:extension>
     
<!--<xs:group ref="SoundChildContentModel" minOccurs="0"/>-->
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute SpatialSound/@coneInnerAngle
type restriction of SFFloat
properties
default 6.2832
facets
Kind Value Annotation
minInclusive 0
maxInclusive 6.2832
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
annotation
appinfo
range [0..2pi]
source <xs:attribute name="coneInnerAngle" default="6.2832">
 
<xs:annotation>
   
<xs:appinfo>range [0..2pi]</xs:appinfo>
 
</xs:annotation>
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
     
<xs:maxInclusive value="6.2832"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute SpatialSound/@coneOuterAngle
type restriction of SFFloat
properties
default 6.2832
facets
Kind Value Annotation
minInclusive 0
maxInclusive 6.2832
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
annotation
appinfo
range [0..2pi]
source <xs:attribute name="coneOuterAngle" default="6.2832">
 
<xs:annotation>
   
<xs:appinfo>range [0..2pi]</xs:appinfo>
 
</xs:annotation>
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
     
<xs:maxInclusive value="6.2832"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute SpatialSound/@coneOuterGain
type SFFloat
properties
default 0
facets
Kind Value Annotation
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="coneOuterGain" type="SFFloat" default="0"/>

attribute SpatialSound/@direction
type SFVec3f
properties
default 0 0 1
facets
Kind Value Annotation
whiteSpace collapse
pattern \s*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s+){2}([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="direction" type="SFVec3f" default="0 0 1"/>

attribute SpatialSound/@distanceModel
type distanceModelChoices
properties
default INVERSE
facets
Kind Value Annotation
enumeration LINEAR
appinfo
<xs:attribute name="alias" type="xs:string" default="linear"/>
                        X3D version of "linear" in Web Audio API.
                   
enumeration INVERSE
appinfo
<xs:attribute name="alias" type="xs:string" default="inverse"/>
                        X3D version of "inverse" in Web Audio API.
                   
enumeration EXPONENTIAL
appinfo
<xs:attribute name="alias" type="xs:string" default="exponential"/>
                        X3D version of "exponential" in Web Audio API.
                   
source <xs:attribute name="distanceModel" type="distanceModelChoices" default="INVERSE"/>

attribute SpatialSound/@dopplerEnabled
type SFBool
properties
default false
source <xs:attribute name="dopplerEnabled" type="SFBool" default="false"/>

attribute SpatialSound/@enableHRTF
type SFBool
properties
default false
source <xs:attribute name="enableHRTF" type="SFBool" default="false"/>

attribute SpatialSound/@gain
type SFFloat
properties
default 1
facets
Kind Value Annotation
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="gain" type="SFFloat" default="1"/>

attribute SpatialSound/@intensity
type unitIntervalType
properties
default 1
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="intensity" type="unitIntervalType" default="1"/>

attribute SpatialSound/@location
type SFVec3f
properties
default 0 0 0
facets
Kind Value Annotation
whiteSpace collapse
pattern \s*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s+){2}([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="location" type="SFVec3f" default="0 0 0"/>

attribute SpatialSound/@maxDistance
type restriction of SFFloat
properties
default 10000
facets
Kind Value Annotation
minInclusive 0
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="maxDistance" default="10000">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute SpatialSound/@priority
type unitIntervalType
properties
default 0
facets
Kind Value Annotation
minInclusive 0
maxInclusive 1
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="priority" type="unitIntervalType" default="0"/>

attribute SpatialSound/@referenceDistance
type restriction of SFFloat
properties
default 1
facets
Kind Value Annotation
minInclusive 0
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="referenceDistance" default="1">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute SpatialSound/@rolloffFactor
type restriction of SFFloat
properties
default 1
facets
Kind Value Annotation
minInclusive 0
pattern \s*([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*
source <xs:attribute name="rolloffFactor" default="1">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute SpatialSound/@spatialize
type SFBool
properties
default true
source <xs:attribute name="spatialize" type="SFBool" default="true"/>

attribute SpatialSound/@containerField
type xs:NMTOKEN
properties
default children
source <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>


XML Schema documentation generated by XMLSpy Schema Editor http://www.altova.com/xmlspy