Phaser API Documentation

  Version: 
<private> forEachActiveSound(callback, [scope])

Description:

Method used internally for iterating only over active sounds and skipping sounds that are marked for removal.

Parameters:

name type arguments description
callback Phaser.Types.Sound.EachActiveSoundCallback

Callback function. (manager: Phaser.Sound.BaseSoundManager, sound: Phaser.Sound.BaseSound, index: number, sounds: Phaser.Manager.BaseSound[]) => void

scope * <optional>

Callback context.

Since: 3.0.0