From a07c33bd66fdf23c1b284d8ef8cdc22c63646f21 Mon Sep 17 00:00:00 2001 From: Vladimir Sadovnikov Date: Mon, 2 Dec 2024 22:21:59 +0300 Subject: [PATCH] Added shared memory links for signal analysis --- CHANGELOG | 1 + include/private/plugins/spectrum_analyzer.h | 2 + res/main/ui/analyzer/spectrum/x1.xml | 1 + res/main/ui/analyzer/spectrum/x12.xml | 7 +- res/main/ui/analyzer/spectrum/x16.xml | 5 +- res/main/ui/analyzer/spectrum/x2.xml | 5 +- res/main/ui/analyzer/spectrum/x4.xml | 7 +- res/main/ui/analyzer/spectrum/x8.xml | 7 +- src/doc/manuals/plugins/spectrum_analyzer.php | 1 + src/main/meta/spectrum_analyzer.cpp | 93 ++++++++++--------- src/main/plug/spectrum_analyzer.cpp | 53 +++++++---- 11 files changed, 113 insertions(+), 69 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 7bbef99..7fa1c21 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ ******************************************************************************* === 1.0.29 === +* Added shared memory links for signal analysis. * Removed the unused 'Hue' parameter for channels. === 1.0.28 === diff --git a/include/private/plugins/spectrum_analyzer.h b/include/private/plugins/spectrum_analyzer.h index 988d77c..20df740 100644 --- a/include/private/plugins/spectrum_analyzer.h +++ b/include/private/plugins/spectrum_analyzer.h @@ -47,11 +47,13 @@ namespace lsp float fGain; // Makeup gain float *vIn; // Input buffer pointer float *vOut; // Output buffer pointer + float *vRet; // Return buffer float *vBuffer; // Temporary buffer // Port references plug::IPort *pIn; // Input samples plug::IPort *pOut; // Output samples + plug::IPort *pRet; // Return plug::IPort *pMSSwitch; // Mid/Side switch plug::IPort *pOn; // FFT on plug::IPort *pSolo; // Soloing flag diff --git a/res/main/ui/analyzer/spectrum/x1.xml b/res/main/ui/analyzer/spectrum/x1.xml index 7133cc3..2955572 100644 --- a/res/main/ui/analyzer/spectrum/x1.xml +++ b/res/main/ui/analyzer/spectrum/x1.xml @@ -256,6 +256,7 @@ +