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

Listener Position #7

Open
zya opened this issue Nov 17, 2015 · 3 comments
Open

Listener Position #7

zya opened this issue Nov 17, 2015 · 3 comments

Comments

@zya
Copy link

zya commented Nov 17, 2015

Any considerations on how we can change the listener position in real time?
Similar to the native listener.setPosition and listener.setOrientation.

@ouhouhsami
Copy link
Contributor

Hi,

You should just use setPosition(azimuth, elevation, distance). The module, and this method is made explicitly for that use case.

Best

@zya
Copy link
Author

zya commented Nov 17, 2015

From what I understood, the binauralFIR's .setPosition method is more like panner.setPosition.
My question was about the listener. In the web audio spec, the panner node will spatialise the object relative to the listener position.

So for example, if my audio graph has 2 instances of binauralFIR nodes, each set with different parameters, calling listener.setPosition should influence the parameters on each of the instances of binauralFIR.

Does the library currently support this?

@ouhouhsami
Copy link
Contributor

You are right, the library currently doesn't support that. This should be a new feature, with an API corresponding to the Web Audio API listener position.

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

2 participants