Variable; Sound - HWRM/KarosGraveyard GitHub Wiki

Found in "*.lua" files in "data\sound" and its subdirectories.
See this thread for additional info on sound file formats and bit counting.


version seems to always be 4
priority possibly sets play priority when too many sounds are being played at once so the sound card can fill its channels
compression number of unkown type
volume number zero or greater that scales the volume of the source sound
volumeRand a number to very the sound volume by
frequency must be set to the frequency of the file otherwise it will speed up or slow down the playback
frequencyRand provides a randomization range to make the sound vary a bit
destination number of unkown type
patch number of unkown type
numChannels integer
maxPolyphony this seems to mean how many of the instances of the sound can play at once, works best at low values
loopStart the bit sample number to start the loop at
loopEnd the bit sample number to end the loop at
startOffset number of unkown type
loopCount integer
loopCountRand number of unkown type
type3D number of unkown type
doppler attempts a doppler effect has issues with camera rotations and is not recommended for ships (only non selectable objects)
coneMin number of unkown type
coneMax number of unkown type
randSampContainer tells the sound shader to look for files in the directory with its same filename sequentially numbered, otherwise it looks for a file of the same name

envelope table

[

distance value at which the envelope points are set and the distance of the camera from the object that the sound is played
volume volume setting at this distance (interpolated)
reverb allows for a reverb effect (and how much)(interpolated) used for echos
duration allows the sound play duration to be lengthend or shortened
equalizer table

[1] these values are essentially a tap filter that controls what frequencies are present at this point, numbers to the left are lower frequency and to the right are higher, this allows bass rumbles for distant sfx
[2] number of unknown type
[3] number of unknown type
[4] number of unknown type
[5] number of unknown type
[6] number of unknown type
[7] number of unknown type
[8] number of unknown type

]

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial