Expand description
Audio resources: Audio::SoundEffect (Runtime), and the game’s MusicList,
AnimAudioEvent, AmbientEmitterDescription and AmbientEnvironmentDescription.
See docs/AUDIO.md.
Structs§
- Ambient
Emitter Description AmbientEmitterDescription: the effects an ambient emitter feeds, and whether activation starts them.- Ambient
Environment Description AmbientEnvironmentDescription.- Ambient
Terrain - One terrain class of an
AmbientEnvironmentDescription(0x28 bytes). - Anim
Audio Event AnimAudioEvent: an animation event that plays a 3D effect at the entity (sound type 4) with probabilityprobability.- Effect
Sound - A sound of the effect’s timeline: starts
startseconds after the effect. - Music
Track - One
MusicListtrack (0x18 bytes): played when the month and the town’s mood are in range. - Sound
Effect - A sound effect: a timeline of sounds, each with variants, a pitch range and a volume, and the radius within which it can be heard.
- Sound
Variant - One playable variant of a sound (0x18 bytes: buffer, pitch range, volume).
Functions§
- ambient_
emitter_ description - Read a
AmbientEmitterDescriptionfrom the bytes of its resource. - ambient_
environment_ description - Read a
AmbientEnvironmentDescriptionfrom the bytes of its resource. - anim_
audio_ event - Read a
AnimAudioEventfrom the bytes of its resource. - music_
list MusicList(Game/MusicTracks.rsc).- sound_
effect - Read a
SoundEffectfrom the bytes of its resource.