summaryrefslogtreecommitdiff
path: root/src/tests/test_spectool.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-28 01:58:43 +0100
committerskal <pascal.massimino@gmail.com>2026-01-28 01:58:43 +0100
commit164c471fb9488f7013be0bcaef7f790020aee916 (patch)
tree16505f92f1e0c243c1934dd68041907a96411208 /src/tests/test_spectool.cc
parentd21a074e20ae82b3ddd21e54391ea3556f5cd66f (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/tests/test_spectool.cc')
0 files changed, 0 insertions, 0 deletions