Skip to content

Understanding maximum simultaneous sounds #1619

Open
@ablakey

Description

@ablakey

Documentation Is:

  • Missing
  • Confusing
  • Incorrect
  • Other

Describe Issue

I have two issues with my game:

  1. If the game plays for a while without audio permissions, then I click the screen, every past sound plays simultaneously and explodes my eardrums.

  2. If I play too many sounds at once, they begin clipping and sounding weird

Suggested Improvement

Documentation improvements to:

  1. describe how to "drop" or avoid playing sounds when lacking permission.

  2. How many sounds can you play simultaneously?

  3. Suggestions on how to track the total count of ongoing sounds.

For item 3, my best guess is to manage that manually: when I play a sound, get that sound's duration, add it to a timestmap, add that to an array, and clean the array every "tick". The array length is the count of ongoing sounds... Or at least a best guess that hopefully stayed sync.

I would be delighted to write this documentation if I could get some real quick notes from others on how to best address these concerns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions