Re: MISC: Inlined Sound Support

Gavin Bell ([email protected])
Fri, 14 Apr 1995 16:50:35 -0700


How about this:

PointSound {
fields [ SFVec3f position, SFFloat radiusOfEffect, SFFloat volume,
SFString url ]

position 0 0 0
radiusOfEffect 100.0
volume 0.5
url "http://iuma.com/Samples/HappyBirthday.aiff"
}

The sound source is transformed by the current transformation and can be
heard if the viewer is withing radiusOfEffect of it (radiusOfEffect is
important to allow sound sources to be view-volume culled, allowing a
potentially infinite number sound sources to be handled).