Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Sound.NoAudioSoundManager
stopByKey(key)
Description:
Stops any sounds matching the given key.
Parameters:
name
type
description
key
string
Sound asset key.
Returns:
Description:
How many sounds were stopped.
Type:
number
Inherited from:
Phaser.Sound.BaseSoundManager#stopByKey
Since:
3.23.0
Source:
src/sound/BaseSoundManager.js
(Line
437
)
Possible examples