web audio - Panner node deprecation/update confusion -
the audiocontext.listener
deprecated , in place "spatiallistener" , curious if still property of audio context?
in other words syntax: audiocontext.spatiallistener
?
also, not clear difference between pannernode
, spatialpanner
node @ point. clarifying appreciated.if spatialpanner replacing previous panner node role previous pannernode have if any.
there 3 panners:
- stereopanner. simple, equal power panner left/right balance audioparam. non-3d panning scenarios should use - it's simple, lightweight , works speakers , headphones.
- panner. previous panner x/y/z controls (and listener set listener position , orientation). unfortunately, x/y/z/ controls weren't set audioparams, , late change them in-place: every bit of code out there using panner have broken. (same listener: params needed audioparams, not doubles: that's why there spatiallistener.) node deprecated, , go away: before v1 of web audio spec finalized. supports both equal-power , hrtf (head-related transfer function), enables 3d positioning.
- spatialpanner. same #2, except a) uses audioparams parameters, it's smoothly automatable, b) it's relative spatiallistener, uses audioparams, , c) it's not deprecated. :) if you're not using stereopanner, should use spatialpanner , spatiallistener.
Comments
Post a Comment