Phaser API Documentation

  Version: 
getAll([key])

Description:

Gets all sounds in this Sound Manager.

You can optionally specify a key, in which case only Sound instances that match the given key will be returned.

Parameters:

name type arguments description
key string <optional>

Optional asset key. If given, only Sound instances with this key will be returned.

Returns:
Description:
  • The sounds, or an empty array.
Type:
Since: 3.23.0