element AudioBufferSource
diagram x3d-4.0_diagrams/x3d-4.0_p7.png
type extension of X3DSoundSourceNode
properties
content complex
children IS MetadataBoolean MetadataDouble MetadataFloat MetadataInteger MetadataSet MetadataString
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.
description  SFString        
pauseTime  SFTime    0    
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Time"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
resumeTime  SFTime    0    
appinfo
<xs:attribute name="componentName" type="componentNameChoices" fixed="Time"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
startTime  SFTime    0    
stopTime  SFTime    0    
enabled  SFBool    true    
gain  SFFloat    1    
buffer  MFFloat        
bufferDuration  derived by: SFTime    0    
appinfo

                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
channelCountMode  channelCountModeChoices    max    
channelInterpretation  channelInterpretationChoices    speakers    
detune  derived by: SFFloat    0    
loop  SFBool    false    
loopEnd  derived by: SFFloat    0    
loopStart  derived by: SFFloat    0    
numberOfChannels  derived by: SFInt32    0    
playbackRate  SFFloat    1    
sampleRate  derived by: SFFloat    0    
containerField  containerFieldChoicesSoundSource    children    
annotation
appinfo
<xs:attribute name="buffer" fixed="inputOutputField">
<xs:simpleType>
<xs:restriction base="MFFloat">
<xs:minInclusive value="-1"/>
<xs:maxInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="channelCount" type="SFInt32" fixed="outputOnlyField"/>
<xs:attribute name="length" fixed="outputOnlyField">
<xs:simpleType>
<xs:restriction base="SFInt32">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="componentName" type="componentNameChoices" fixed="Sound"/>
<xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>
source <xs:element name="AudioBufferSource">
 
<xs:annotation>
   
<xs:appinfo>
     
<xs:attribute name="buffer" fixed="inputOutputField">
       
<xs:simpleType>
         
<xs:restriction base="MFFloat">
           
<xs:minInclusive value="-1"/>
           
<xs:maxInclusive value="1"/>
         
</xs:restriction>
       
</xs:simpleType>
     
</xs:attribute>
     
<xs:attribute name="channelCount" type="SFInt32" fixed="outputOnlyField"/>
     
<xs:attribute name="length" fixed="outputOnlyField">
       
<xs:simpleType>
         
<xs:restriction base="SFInt32">
           
<xs:minInclusive value="0"/>
         
</xs:restriction>
       
</xs:simpleType>
     
</xs:attribute>
     
<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/X3Dv4Draft/ISO-IEC19775-1v4-WD2/Part01/components/sound.html#AudioBufferSource"/>
 
</xs:annotation>
 
<xs:complexType>
   
<xs:complexContent>
     
<xs:extension base="X3DSoundSourceNode">
       
<xs:attribute name="buffer" type="MFFloat">
         
<!-- TODO consider regex for non-negative array -->
       
</xs:attribute>
       
<xs:attribute name="bufferDuration" default="0">
         
<xs:annotation>
           
<xs:appinfo>
                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
</xs:appinfo>
         
</xs:annotation>
         
<xs:simpleType>
           
<xs:restriction base="SFTime">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="channelCountMode" type="channelCountModeChoices" default="max"/>
       
<xs:attribute name="channelInterpretation" type="channelInterpretationChoices" default="speakers"/>
       
<xs:attribute name="detune" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="loop" type="SFBool" default="false"/>
       
<xs:attribute name="loopEnd" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="loopStart" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="numberOfChannels" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFInt32">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="playbackRate" type="SFFloat" default="1"/>
       
<xs:attribute name="sampleRate" default="0">
         
<xs:simpleType>
           
<xs:restriction base="SFFloat">
             
<xs:minInclusive value="0"/>
           
</xs:restriction>
         
</xs:simpleType>
       
</xs:attribute>
       
<xs:attribute name="containerField" type="containerFieldChoicesSoundSource" default="children"/>
     
</xs:extension>
   
</xs:complexContent>
 
</xs:complexType>
</xs:element>

attribute AudioBufferSource/@buffer
type MFFloat
facets
Kind Value Annotation
whiteSpace collapse
pattern (\s)*(([+-]?((0|[1-9][0-9]*)(\.[0-9]*)?|\.[0-9]+)([Ee][+-]?[0-9]+)?)\s*,?\s*)*
source <xs:attribute name="buffer" type="MFFloat">
 
<!-- TODO consider regex for non-negative array -->
</xs:attribute>

attribute AudioBufferSource/@bufferDuration
type restriction of SFTime
properties
default 0
facets
Kind Value Annotation
minInclusive 0
annotation
appinfo

                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
source <xs:attribute name="bufferDuration" default="0">
 
<xs:annotation>
   
<xs:appinfo>
                                Renamed field since W3C Web Audio name 'duration' is a name collision with X3DSoundSourceNode/X3DTimeDependentNode
                           
</xs:appinfo>
 
</xs:annotation>
 
<xs:simpleType>
   
<xs:restriction base="SFTime">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute AudioBufferSource/@channelCountMode
type channelCountModeChoices
properties
default max
facets
Kind Value Annotation
enumeration max
enumeration clamped-max
enumeration explicit
source <xs:attribute name="channelCountMode" type="channelCountModeChoices" default="max"/>

attribute AudioBufferSource/@channelInterpretation
type channelInterpretationChoices
properties
default speakers
facets
Kind Value Annotation
enumeration speakers
enumeration discrete
source <xs:attribute name="channelInterpretation" type="channelInterpretationChoices" default="speakers"/>

attribute AudioBufferSource/@detune
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="detune" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

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

attribute AudioBufferSource/@loopEnd
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="loopEnd" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute AudioBufferSource/@loopStart
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="loopStart" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute AudioBufferSource/@numberOfChannels
type restriction of SFInt32
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="numberOfChannels" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFInt32">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute AudioBufferSource/@playbackRate
type SFFloat
properties
default 1
source <xs:attribute name="playbackRate" type="SFFloat" default="1"/>

attribute AudioBufferSource/@sampleRate
type restriction of SFFloat
properties
default 0
facets
Kind Value Annotation
minInclusive 0
source <xs:attribute name="sampleRate" default="0">
 
<xs:simpleType>
   
<xs:restriction base="SFFloat">
     
<xs:minInclusive value="0"/>
   
</xs:restriction>
 
</xs:simpleType>
</xs:attribute>

attribute AudioBufferSource/@containerField
type containerFieldChoicesSoundSource
properties
default children
facets
Kind Value Annotation
enumeration children
appinfo
parent node is X3DSoundChannelNode, X3DSoundDestinationNode, or X3DSoundProcessingNode
enumeration source
appinfo
parent node is Sound node (legacy X3D3 SFNode source is allowed content model, prefer X3D4 MFNode children)
source <xs:attribute name="containerField" type="containerFieldChoicesSoundSource" default="children"/>


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