Specifies a sound that can be used with SoundPath at runtime.
type | :: "sound" | |
name | :: string | Name of the sound. [...] |
Name of the sound. [...] | ||
category optional | :: SoundType | |
prioritynew optional | :: uint8 | Sounds with higher priority will replace a sound with lower priority if the maximum sounds limit is reached. [...] |
Sounds with higher priority will replace a sound with lower priority if the maximum sounds limit is reached. [...] | ||
aggregation optional | :: AggregationSpecification | |
allow_random_repeat optional | :: bool | |
audible_distance_modifier optional | :: double | Modifies how far a sound can be heard. [...] |
Modifies how far a sound can be heard. [...] | ||
game_controller_vibration_data optional | :: GameControllerVibrationData | |
advanced_volume_controlnew optional | :: AdvancedVolumeControl | |
speed_smoothing_window_sizenew optional | :: uint32 | |
variations optional | :: SoundDefinition or array[SoundDefinition] | |
filename optional | :: FileName | Supported sound file formats are |
Supported sound file formats are | ||
volume optional | :: float | Only loaded if |
Only loaded if | ||
min_volumenew optional | :: float | Only loaded if |
Only loaded if | ||
max_volumenew optional | :: float | Only loaded if |
Only loaded if | ||
preload optional | :: bool | Only loaded if |
Only loaded if | ||
speed optional | :: float | Speed must be |
Speed must be | ||
min_speed optional | :: float | Must be |
Must be | ||
max_speed optional | :: float | Must be |
Must be | ||
modifiersnew optional | :: SoundModifier or array[SoundModifier] | Only loaded if |
Only loaded if |
name | :: string | Name of the sound. [...] |
Name of the sound. [...] | ||
type | :: "sound" | |
advanced_volume_controlnew optional | :: AdvancedVolumeControl | |
aggregation optional | :: AggregationSpecification | |
allow_random_repeat optional | :: bool | |
audible_distance_modifier optional | :: double | Modifies how far a sound can be heard. [...] |
Modifies how far a sound can be heard. [...] | ||
category optional | :: SoundType | |
filename optional | :: FileName | Supported sound file formats are |
Supported sound file formats are | ||
game_controller_vibration_data optional | :: GameControllerVibrationData | |
max_speed optional | :: float | Must be |
Must be | ||
max_volumenew optional | :: float | Only loaded if |
Only loaded if | ||
min_speed optional | :: float | Must be |
Must be | ||
min_volumenew optional | :: float | Only loaded if |
Only loaded if | ||
modifiersnew optional | :: SoundModifier or array[SoundModifier] | Only loaded if |
Only loaded if | ||
preload optional | :: bool | Only loaded if |
Only loaded if | ||
prioritynew optional | :: uint8 | Sounds with higher priority will replace a sound with lower priority if the maximum sounds limit is reached. [...] |
Sounds with higher priority will replace a sound with lower priority if the maximum sounds limit is reached. [...] | ||
speed optional | :: float | Speed must be |
Speed must be | ||
speed_smoothing_window_sizenew optional | :: uint32 | |
variations optional | :: SoundDefinition or array[SoundDefinition] | |
volume optional | :: float | Only loaded if |
Only loaded if |
Default: "game-effect"
Default: 127
Sounds with higher priority will replace a sound with lower priority if the maximum sounds limit is reached.
0 is the highest priority, 255 is the lowest priority.
Default: 1.0
Modifies how far a sound can be heard. Must be between 0
and 1
inclusive.
Default: 0
Supported sound file formats are .ogg
(Vorbis and Opus) and .wav
.
Only loaded, and mandatory if variations
is not defined.
Default: 1.0
Only loaded if variations
is not defined.
This sets both min and max volumes.
Must be >= 0
.
Default: 1.0
Only loaded if variations
and volume
are not defined.
Must be >= 0
.
Default: 1.0
Only loaded if variations
is not defined.
Only loaded if min_volume
is defined.
Must be >= min_volume
.
Only loaded if variations
is not defined.
Default: 1.0
Speed must be >= 1 / 64
. This sets both min and max speeds.
Only loaded if variations
is not defined.
Default: 1.0
Must be >= 1 / 64
.
Only loaded if both variations
and speed
are not defined.
Default: 1.0
Must be >= min_speed
.
Only loaded if variations
is not defined. Only loaded, and mandatory if min_speed
is defined.
Only loaded if variations
is not defined.