ygSoundServer derived from ygSpace | Example | Source | Header |
Messages |
amplitude | float | set the amplitude within the space |
falloffDistance | float | set the zero amplitude distance from the space perimeter |
attenuation | [none | linear | squared] | set distance attenuation type |
send | string, multiple string | send a message to the server |
Comments |
method global_
constructor ygSoundServer
destructor ~ygSoundServer
method reset
1 set amplitude to 1.0
2 set fall off distance to 10.0
3 set attenuation type
method message
1 set the amplitude within the space
2 set the zero amplitude distance from the space perimeter
3 set distance attenuation type
4 send a message to the server
method setFalloffDistance
method setAmplitude
method setAttenuation
method amplitude
method falloffDistance
method attenuation
method isPlaying
method isPaused
method play
method pause
method stop
method heartbeat
method app
method computeDistance
method initServer
method addSound
method removeSound
method updateServer
1 if update interval has passed then
1.1 get position relative to CAVE
1.2 update sound server
method closeServer
method server