class
FVoiceGrainFilter
FVoiceGrainFilter — the third layer of proximity voice, after distance and walls: the voice breaking up as it reaches the edge of what carries. Lower fidelity rather than lower level, so a far voice is still there but the words smear: the sample rate is held down (sample-and-hold), the word length is cut, and a crackle rides the voice's own envelope so silence stays silent.
- Module
- VoiceChat
- Header
#include "VoiceChat/FVoiceGrainFilter.h"- Namespace
Mowo
Amount 0 is a bit-exact copy, so a near voice pays nothing for the layer. Deterministic for a given seed and input: the noise is a xorshift, not the C library's generator, so the same frames come out on every machine.
Stateful per stream, like the radio filter.
Public functions
| Returns | Name | Description |
|---|---|---|
void | Configure | |
void | Reset | |
void | Process | in and out may be the same buffer. |
uint32_t | GetSampleRate |
Function details
Configure
C++
void Configure(uint32_t sampleRate, uint32_t seed)Reset
C++
void Reset()Process
C++
void Process(const int16_t* in, int16_t* out, uint32_t count, float amount)in and out may be the same buffer. amount is 0..1.
GetSampleRate
C++
uint32_t GetSampleRate() constGenerated from VoiceChat/FVoiceGrainFilter.h via voicechat.json · Oct 26, 2026Version 1.0.0