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

Audio3d setVelocity方法,已经被弃用,建议删除 #2

Closed
eos3tion opened this issue May 27, 2018 · 1 comment
Closed

Audio3d setVelocity方法,已经被弃用,建议删除 #2

eos3tion opened this issue May 27, 2018 · 1 comment
Milestone

Comments

@eos3tion
Copy link

@WanderWang
https://github.com/egret-labs/egret3d/blob/master/egret3d/components/AudioSource3D/AudioSource3D.ts#L342-L365

PannerNode.prototype.setVelocity方法已经被W3C弃用
当前版本的Chrome根本不支持此方法,建议删除/或做容错处理,避免开发者误用。
https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity

@WanderWang
Copy link
Contributor

感谢您的建议,我们会在后续版本中重构音频模块,并添加您说的这个改动

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