Commit graph

6 commits

Author SHA1 Message Date
Christopher Snowhill
43e4dc4955 Bug Fix: Check memory allocations for FFT state
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-13 18:50:02 -07:00
Christopher Snowhill
7988d3be32 Bug Fix: Free FFT/DFT state on shutdown
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-13 18:49:58 -07:00
Christopher Snowhill
b693c946b8 Bug Fix: Zero out DFT state pointer on free
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-13 18:49:53 -07:00
Christopher Snowhill
6340b08308 Visualization: Rewrite FFT calculation code
Some checks are pending
Check if Cog buildable / Build Universal Cog.app (push) Waiting to run
This code, based on some other vDSP information I found, performs the
DFT in a different fashion, and also pre-converts the spectrum data into
decibel levels, so the DeaDBeeF analyzer calculation code doesn't need
to convert the values itself any more.

Maybe this will also get rid of the use after free problem somewhere in
the audio code? Who knows?

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2025-06-12 19:56:43 -07:00
Christopher Snowhill
7cac6625d9 [Visualizer] Align memory allocations for DFT
DFT should use aligned memory blocks for best results. Also allocate one
extra sample for DFT output, just in case DFT zop is as bad as zrop.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-06-11 03:33:42 -07:00
Christopher Snowhill
417687600b Implement visualization support and a spectrum
Borrowing some DFT code from deadbeef, this implements a simple spectrum
visualization into the main toolbar of the app.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-12 23:04:03 -08:00