class

FWeatherRainAudio

The rain bed of the Weather actor: a looping 2D sound whose level follows the rain intensity (smoothed, so a sudden downpour fades in) and which ducks and loses its highs when the listener stands under cover. One per Scene, updated from the game tick; owns its AudioSource and releases it once the rain has faded out.

Module
Game
Header
#include "Game/WeatherRainAudio.h"
Namespace
Mowo

Without an authored clip the bed is synthesized: filtered noise plus sparse droplet ticks pushed into a PCM stream, so the engine ships no rain asset and the bed never audibly repeats.

Constructors

SignatureNameDescription
FWeatherRainAudio()FWeatherRainAudio
~FWeatherRainAudio()~FWeatherRainAudio
FWeatherRainAudio(const FWeatherRainAudio&) = deleteFWeatherRainAudio

Public functions

ReturnsNameDescription
FWeatherRainAudio&operator=
voidUpdaterainIntensity 0..1, volume 0..1 (the actor's rainAudioVolume), clipPath empty for the synthesized bed, sheltered true when something solid is overhead the listener.
voidStop
floatGetLevelThe smoothed gain the source is set to, 0..1 before the actor volume; for tests and diagnostics.
floatGetShelter

Function details

FWeatherRainAudio

C++
FWeatherRainAudio()

~FWeatherRainAudio

C++
~FWeatherRainAudio()

FWeatherRainAudio

C++
FWeatherRainAudio(const FWeatherRainAudio&) = delete

operator=

C++
FWeatherRainAudio& operator=(const FWeatherRainAudio&) = delete

Update

C++
void Update(float rainIntensity, float volume, const std::string& clipPath, bool sheltered, float dt)

rainIntensity 0..1, volume 0..1 (the actor's rainAudioVolume), clipPath empty for the synthesized bed, sheltered true when something solid is overhead the listener.

Stop

C++
void Stop()

GetLevel

C++
float GetLevel() const

The smoothed gain the source is set to, 0..1 before the actor volume; for tests and diagnostics.

GetShelter

C++
float GetShelter() const
Generated from Game/WeatherRainAudio.h via game.json · Dec 5, 2026Version 1.1.0