Hello,
Currently, the way to access the listener object is through accessing:
Wad.audioContext.listener
This is great, but there is some functionality WAD could add to make the process better:
The set orientation and set position functions are now deprecated, so adding those back would be valuable.
Currently, the set orientation requires a vector, but all the code in my systems uses angles and degrees. It would be extremely helpful for me if there was a set orientation function that would rotate the listener object through:
setOrientation(90)
There could also be a setPosition function that takes a theta and an amount to move, and sets the new position if the 3rd argument is true. Then it can return the new position.
This would also be a good place to allow someone to put effects over all sounds at once, as if the listener was having an effect put onto them.
Thanks,
Hello, Currently, the way to access the listener object is through accessing:
This is great, but there is some functionality WAD could add to make the process better:
The set orientation and set position functions are now deprecated, so adding those back would be valuable.
Currently, the set orientation requires a vector, but all the code in my systems uses angles and degrees. It would be extremely helpful for me if there was a set orientation function that would rotate the listener object through:
setOrientation(90)
There could also be a setPosition function that takes a theta and an amount to move, and sets the new position if the 3rd argument is true. Then it can return the new position.
This would also be a good place to allow someone to put effects over all sounds at once, as if the listener was having an effect put onto them. Thanks,