Phaser API Documentation

  Version: 
playAudioSprite(key, spriteName, [config])

Description:

This method does nothing but return 'false' for the No Audio Sound Manager, to maintain compatibility with the other Sound Managers.

Parameters:

name type arguments description
key string

Asset key for the sound.

spriteName string

The name of the sound sprite to play.

config Phaser.Types.Sound.SoundConfig <optional>

An optional config object containing default sound settings.

Returns:
Description:

Always 'false' for the No Audio Sound Manager.

Type:
  • boolean
Since: 3.0.0