Brandon

Results 97 comments of Brandon

For V1, I would like to have some language in explainer.md under the "Viewer tracking" header that show exactly how to currently connect the web audio API to WebXR. I'm...

OK, what xrReferenceSpaces can translate directly to the vector in Web Audio? Also, what is the order of arguments? I would like to put an example in explainer.md that shows...

If the values are the same, then the example would look something like this? ```js const view = pose.views[0]; [ listener.positionX.value, listener.positionY.value, listener.positionZ.value, listener.forwardX.value, listener.forwardY.value, listener.forwardZ.value, listener.upX.value, listener.upY.value, listener.upZ.value ]...

Perfect, thank you! So the example would be: ```js // initialize the audio context const AudioContext = window.AudioContext || window.webkitAudioContext; const audioCtx = new AudioContext(); function onDrawFrame(timestamp, xrFrame) { //...

Those two functions are unfortunately [deprecated](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener)

So this would be the actual example: ```js // initialize the audio context const AudioContext = window.AudioContext || window.webkitAudioContext; const audioCtx = new AudioContext(); function onDrawFrame(timestamp, xrFrame) { // Do...

OK, this looks as if it is pretty close to being an example we can put in explainer.md: ```js // initialize the audio context const AudioContext = window.AudioContext || window.webkitAudioContext;...

OK, so the above example works for all the XRReferenceSpaces except for the basic "viewer". To make viewer work, we need to just remove the set position, as the position...

I'm wondering if there needs to be a seperate example for the viewer mode, or if the above will work for viewer as well.

I submitted a PR with the example to explainer.md, please edit and comment: https://github.com/immersive-web/webxr/pull/930