Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module for WebAudio integration #59

Open
Manishearth opened this issue Nov 20, 2020 · 1 comment
Open

Module for WebAudio integration #59

Manishearth opened this issue Nov 20, 2020 · 1 comment

Comments

@Manishearth
Copy link

Currently you need to do a bunch of per-frame work to update AudioListeners and PannerNode positions (see the examples in immersive-web/webxr#930).

Frameworks like threejs paper over this, so many end users do not need to deal with this, but doing this in vanilla WebXR/WebAudio code is tricky. Furthermore, there's an additional delay introduced with having to ferry this information from the XR frame update to the WebAudio rendering thread.

A nice API to have would be a WebAudio integration where you can attach an XRSpace to the AudioListener and PannerNodes, perhaps with a scaling factor, and the audio rendering thread is then allowed to directly fetch position info at whatever cadence it would like. (This also means that under the hood the panning code can take into account velocity and other features to better predict the head position at render time)

@Manishearth
Copy link
Author

cc @hoch @padenot @rtoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant