[MovieT] , <<VRML 2.0 - An Introductory view by examples

AudioClip

[example]                                                   [run] 

It is a time-dependent node activating and deactivating itself at specified times. It specifies audio data that can be referenced by other nodes.

{
exposedField SFString description " " # a textual description of the audio source
exposedField SFFloat pitch 1.0 # degree of highness/lowless
exposedField SFBool loop FALSE # if FALSE at the end of cycle, stops playing
exposedField SFTime startTime 0 # starts if current time > startTime
exposedField SFTime stopTime 0 # stops when stopTime is reached for stopTime > startTime
exposedField MFString url [] # URL from which the sound is loaded. At least the wavefile PCM format shall be supported
eventOut SFTime duration_changed # signalizes change of source
eventOut SFBool is_Active # for other nodes to determine if the clip is currently active
}

Usage :


    Sound {
      source AudioClip {
          url "http:// .........../som.wav"
                        }
           }