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

Avoid stopping playground music because of resource limit. #14970

Closed
minggo opened this issue May 5, 2023 · 2 comments
Closed

Avoid stopping playground music because of resource limit. #14970

minggo opened this issue May 5, 2023 · 2 comments
Assignees
Labels
Optimization Enhancement in performance, usability, stability etc

Comments

@minggo
Copy link
Contributor

minggo commented May 5, 2023

If two many musics are played simultaneously, background music will be stopped because of resource limitation. Should find a way to resolve it. For example, add a method to keep a music instance that are not stopped.

@minggo minggo added the Optimization Enhancement in performance, usability, stability etc label May 5, 2023
@bofeng-song
Copy link
Contributor

The current implementation is that if more than 10 sound effects are played, the first one will be stopped and the new one will be added to the management queue, without stopping all sound effects.

@bofeng-song
Copy link
Contributor

bofeng-song commented Jul 17, 2023

Developers can use play to play regular sounds, playoneShot to play sound effects, and call different interfaces for different sounds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Optimization Enhancement in performance, usability, stability etc
Projects
Status: Done
Development

No branches or pull requests

2 participants