Audio-ISSUE-68 (AudioListenerOrientation): AudioListener.setOrientation vectors [Web Audio API]
http://www.w3.org/2011/audio/track/issues/68
Raised by: Philip Jägenstedt
On product: Web Audio API
https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioListener
The setOrientation method takes two vectors, front and up. No constraints are given for these, nor is their interpretation defined.
The gluLookAt function [1] is similar, and is defined as such:
"The viewing matrix created is based on an eye point eyex,eyey,eyez, a reference point that represents the center of the scene centerx,centery,centerz, and an up vector upx,upy,upz. The matrix is designed to map the center of the scene to the negative Z axis, so that when a typical projection matrix is used, the center of the scene will map to the center of the viewport. Similarly, the projection of the up vector on the viewing plane is mapped to the positive Y axis so that it will point upward in the viewport. The up vector must not be parallel to the line-of-sight from the eye to the center of the scene."
pyOpenGL [2] defines it in even more detail, with the actual transformation matrix being given.
The Web Audio API needs a similar level of detail.
[1] http://www.opengl.org/registry/doc/glu1.3.pdf
[2] http://pyopengl.sourceforge.net/documentation/manual/gluLookAt.3G.html