ClassAudio System@public
FlxSoundGroup
A hierarchical volume and mute bus for link instances.
ts
export declare class FlxSoundGroupConstructors
ts
constructor(name: string, parent?: FlxSoundGroup | null)Constructs a new instance of the FlxSoundGroup class
| Parameter | Type | Description |
|---|---|---|
name | string | - |
parent | FlxSoundGroup | null | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
actualVolume | readonly | number | Volume after applying every ancestor bus. |
mute | - | boolean | - |
muted | readonly | boolean | Whether this bus or any ancestor bus is muted. |
name | readonly | string | - |
parent | readonly | FlxSoundGroup | null | - |
soundCount | readonly | number | - |
volume | - | number | - |
Methods
add()
ts
add(sound: FlxSound): FlxSoundRoute a sound through this bus, removing it from its previous bus.
Parameters:
| Parameter | Type | Description |
|---|---|---|
sound | FlxSound | - |
Returns: FlxSound
createChild()
ts
createChild(name: string): FlxSoundGroupCreate a child bus whose effective settings include this bus.
Parameters:
| Parameter | Type | Description |
|---|---|---|
name | string | - |
Returns: FlxSoundGroup
destroy()
ts
destroy(): voidDetach sounds and recursively destroy child buses.
Returns: void
remove()
ts
remove(sound: FlxSound): FlxSoundStop routing a sound through this bus.
Parameters:
| Parameter | Type | Description |
|---|---|---|
sound | FlxSound | - |
Returns: FlxSound