[X3D-Public] MIDI node was X3D for Web Authors Examples Archive, plus audio test scene of different sound formats

Michalis Kamburelis michalis.kambi at gmail.com
Thu Dec 12 10:59:43 PST 2013


Don Brutzman wrote:
> - it requires multiple retrievals of the souncd file since both url
> and pitch are controlled by AudioClip

That is why view3dscene can cache by URLs, so multiple AudioClips with 
the same url load their resources only once :) Each one can still have 
individual pitch. If you load 
http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/Figure24.4FourKeyKeyboard.x3d 
in view3dscene with debug log (you run view3dscene from the terminal 
with --debug-log option) you'll see this:

Network: Downloading 
"http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/tone1.wav"
Network: Successfully downloaded 
"http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/tone1.wav", 
MIME type "audio/x-wav", MIME type was specified by server: True
Sound: Loaded 
"http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/tone1.wav": 
TSoundWAV, mono 16, size: 19124, frequency: 6000, duration: 1.59
Sound: Loaded 
"http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/tone1.wav" 
from cache, now has 2 references
Sound: Loaded 
"http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/tone1.wav" 
from cache, now has 3 references
Sound: Loaded 
"http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter24-Sound/tone1.wav" 
from cache, now has 4 references

Michalis



More information about the X3D-Public mailing list