diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-28 01:58:43 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-28 01:58:43 +0100 |
| commit | 164c471fb9488f7013be0bcaef7f790020aee916 (patch) | |
| tree | 16505f92f1e0c243c1934dd68041907a96411208 /src/platform.h | |
| parent | d21a074e20ae82b3ddd21e54391ea3556f5cd66f (diff) | |
fix(synth): Implement peak meter with decay for smooth visuals
The graphics appeared static because the audio peak value was transient, only lasting for a single audio buffer. The main graphics loop, running much faster, would mostly read a zero value.
This fix implements a simple peak meter with an exponential decay. The peak value now rises instantly to the maximum sample value but fades out smoothly over several frames, providing a persistent and smooth value for the visualizer.
Diffstat (limited to 'src/platform.h')
0 files changed, 0 insertions, 0 deletions
