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

WebAudio removed doppler functionality #4587

Closed
juj opened this issue Sep 27, 2016 · 1 comment
Closed

WebAudio removed doppler functionality #4587

juj opened this issue Sep 27, 2016 · 1 comment
Assignees
Labels

Comments

@juj
Copy link
Collaborator

juj commented Sep 27, 2016

Looks like Web Audio API has remove support for computing doppler effects on spatial 3D audio sources. These correspond to calling .setVelocity() on the audio panner nodes.

This means we can't support OpenAL doppler effects anymore, so will need to replace those with no-ops or similar.

References:

@juj juj added the OpenAL label Sep 27, 2016
@juj juj self-assigned this Sep 27, 2016
@sriharshachilakapati
Copy link

I did this a few months ago, in GWT-AL project, which provides OpenAL on top of WebAudio API for Java projects. I didn't primarily test it, but the algorithm is from the OpenAL Specification, and some of the code is taken from the OpenAL Soft library.

https://github.com/sriharshachilakapati/GWT-AL/blob/master/gwt-al/src/main/java/com/shc/gwtal/client/openal/ALSource.java#L106-L153

Maybe that is what you're looking after. I haven't tested it in depth, but for my ears, it plays similar to the implementation of OpenAL Soft on C programs.

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

No branches or pull requests

2 participants