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

fix repeatly recycle audio #4793

Merged
merged 1 commit into from Jul 3, 2019

Conversation

@umbrellaPP
Copy link
Contributor

commented Jul 2, 2019

Re: cocos-creator/2d-tasks#1581

changeLog:

  • audioEngine 无法停止播放背景音乐的问题

主要是因为 audioEngine 播放结束后,回收了 audio 到对象池,用户又手动调用了 uncache,而引擎没有防止重复回收的判断,导致对象池管理混乱

@jareguo jareguo merged commit 6d8d5c6 into cocos-creator:v2.1.2 Jul 3, 2019

1 check passed

ci/circleci: test Your tests passed on CircleCI!
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.