code/__DEFINES/sound.dm

SOUND_AUDIBLE_VOLUME_MIN | This is the lowest volume that can be used by playsound otherwise it gets ignored Most sounds around 10 volume can barely be heard. Almost all sounds at 5 volume or below are inaudible This is to prevent sound being spammed at really low volumes due to distance calculations Recommend setting this to anywhere from 10-3 (or 0 to disable any sound minimum volume restrictions) Ex. For a 70 volume sound, 17 tile range, 3 exponent, 2 falloff_distance: Setting SOUND_AUDIBLE_VOLUME_MIN to 0 for the above will result in 17x17 radius (289 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 5 for the above will result in 14x14 radius (196 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 10 for the above will result in 11x11 radius (121 turfs) |
---|---|
SOUND_RANGE | Default range of a sound. |
SHORT_RANGE_SOUND_EXTRARANGE | default extra range for sounds considered to be quieter |
SILENCED_SOUND_EXTRARANGE | The range deducted from sound range for things that are considered silent / sneaky |
SOUND_DEFAULT_FALLOFF_DISTANCE | Percentage of sound's range where no falloff is applied |
SOUND_FALLOFF_EXPONENT | The default exponent of sound falloff |
GET_RAND_FREQUENCY | Frequency stuff only works with 45kbps oggs. |
SFX_SHATTER | List of all of our sound keys. |
Define Details
GET_RAND_FREQUENCY
Frequency stuff only works with 45kbps oggs.
SFX_SHATTER
List of all of our sound keys.
SHORT_RANGE_SOUND_EXTRARANGE
default extra range for sounds considered to be quieter
SILENCED_SOUND_EXTRARANGE
The range deducted from sound range for things that are considered silent / sneaky
SOUND_AUDIBLE_VOLUME_MIN
This is the lowest volume that can be used by playsound otherwise it gets ignored Most sounds around 10 volume can barely be heard. Almost all sounds at 5 volume or below are inaudible This is to prevent sound being spammed at really low volumes due to distance calculations Recommend setting this to anywhere from 10-3 (or 0 to disable any sound minimum volume restrictions) Ex. For a 70 volume sound, 17 tile range, 3 exponent, 2 falloff_distance: Setting SOUND_AUDIBLE_VOLUME_MIN to 0 for the above will result in 17x17 radius (289 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 5 for the above will result in 14x14 radius (196 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 10 for the above will result in 11x11 radius (121 turfs)
SOUND_DEFAULT_FALLOFF_DISTANCE
Percentage of sound's range where no falloff is applied
SOUND_FALLOFF_EXPONENT
The default exponent of sound falloff
SOUND_RANGE
Default range of a sound.