sound_looping

🚧 This incomplete article needs help! Please submit tips and info by pull requests or issues or contacting a maintainer.

...

Structure and fields #

Field Type Comments
flags bitfield(32)
Flag Mask Comments
deafening to ais 0x1
not a loop 0x2

Prevents the sound from looping. When played with sound_looping_start, it will play only once.

stops music 0x4
zero detail sound period f32
zero detail unknown floats f32 (little endian?) x2
one detail sound period f32
one detail unknown floats f32 (little endian?) x2
unknown int u32 (little endian?)
  • Only set when the tag is compiled into a map cache.
maximum distance f32 (little endian?)
  • Only set when the tag is compiled into a map cache.
pad(8)
tracks Block?
Field Type Comments
flags bitfield(32)
Flag Mask Comments
fade in at start 0x1
fade out at stop 0x2
fade in alternate 0x4
gain Fraction: f32
  • Maximum: 1
  • Default value: 1.
fade in duration f32 (seconds)
fade out duration f32 (seconds)
pad(32)
pad(32)
detail sounds Block?
Field Type Comments
random period bounds f32 (seconds) (min & max)
gain Fraction: f32
  • Maximum: 1
  • Default value: 1.
flags bitfield(32)
Flag Mask Comments
don't play with alternate 0x1
don't play without alternate 0x2
pad(48)
yaw bounds Angle: f32 (min & max)
pitch bounds Angle: f32 (min & max)
distance bounds f32 (world units) (min & max)

This information was partially generated using Invader tag definitions.

Acknowledgements

Thanks to the following individuals for their research or contributions to this topic:

  • Kavawuvi (Invader tag definitions)
  • MosesOfEgypt (Tag structure research)