A way of grouping sounds for things such as collective volume control
Constructor
Variables
Methods
add(sound:FlxSound):Bool
Add a sound to this group, will remove the sound from any group it is currently in
Parameters:
sound | The sound to add to this group |
|---|
Returns:
True if sound was successfully added, false otherwise
getVolume():Float
Returns the volume of this group, taking muted in account.
Returns:
The volume of the group or 0 if the group is muted.
remove(sound:FlxSound):Bool
Remove a sound from this group
Parameters:
sound | The sound to remove |
|---|
Returns:
True if sound was successfully removed, false otherwise
resume():Void
Unpauses all sounds in this group. Only works on sounds that have been paused.
Available since
4.3.0
.