Issue metadata
Sign in to add a comment
|
Web Audio Api - Set listener position not working properly
Reported by
a.vallen...@gmx.de,
Jun 28 2016
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 Steps to reproduce the problem: 1. Create a listener and a sound source with a panner in a 3D space 2. Connect the panner with the listener and play the sound source 3. Use the function setPosition(x, y, z) from the listener and change the original position What is the expected behavior? The volume of the sound should decrease or increase, according to the properties of the panner. What went wrong? If the function "listener.setPosition(...)" will be used the sound is instantly gone. If the panner position will be changed, the volume increases or decreases as it should be. Did this work before? N/A Chrome version: 51.0.2704.103 Channel: n/a OS Version: OS X 10.11.5 Flash Version: Shockwave Flash 22.0 r0 In the zip-file you can find an example where the changing of the listener position is not working. You can start it like described in the readme file. The important line can be found in the file scene.js at line 666.
,
Jun 28 2016
I can confirm that if you press one of wasd, sound suddenly stops. Don't know why.
,
Jun 28 2016
I believe this is working as intended. The first call to setPosition after pressing a key has a position of (0,10,0). The distance between the listener and the panner is 12.3. The value of maxDistance is 10 and the distance model is linear, so the distance gain works out to be 0. Hence you never hear anything.
,
Jun 28 2016
You can hear something if the maxDistance of the panner is set to 20. So this bug can be closed.
,
Jun 28 2016
Thanks for verifying this. Closing as WontFix (Working as intended) |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by rtoy@chromium.org
, Jun 28 2016