-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated build scripts and dependencies.
- Loading branch information
Showing
6 changed files
with
83 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2022 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2022 Stefano Tronci <[email protected]> | ||
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2023 Stefano Tronci <[email protected]> | ||
* | ||
* This file is part of lsp-plugins | ||
* Created on: 27 Feb 2022 | ||
|
@@ -153,19 +153,8 @@ namespace lsp | |
plug::IPort *pReactivity; // FFT reactivity | ||
plug::IPort *pShiftGain; // FFT gain shift | ||
|
||
public: | ||
explicit noise_generator(const meta::plugin_t *meta); | ||
virtual ~noise_generator(); | ||
|
||
virtual void init(plug::IWrapper *wrapper, plug::IPort **ports); | ||
void destroy(); | ||
|
||
public: | ||
virtual void update_sample_rate(long sr); | ||
virtual void update_settings(); | ||
virtual void process(size_t samples); | ||
virtual bool inline_display(plug::ICanvas *cv, size_t width, size_t height); | ||
virtual void dump(dspu::IStateDumper *v) const; | ||
protected: | ||
void do_destroy(); | ||
|
||
protected: | ||
inline ssize_t make_seed() const; | ||
|
@@ -174,9 +163,24 @@ namespace lsp | |
static dspu::ng_color_t get_color(size_t value); | ||
static dspu::stlt_slope_unit_t get_color_slope_unit(size_t value); | ||
static ch_mode_t get_channel_mode(size_t value); | ||
|
||
public: | ||
explicit noise_generator(const meta::plugin_t *meta); | ||
virtual ~noise_generator() override; | ||
|
||
virtual void init(plug::IWrapper *wrapper, plug::IPort **ports) override; | ||
void destroy() override; | ||
|
||
public: | ||
virtual void update_sample_rate(long sr) override; | ||
virtual void update_settings() override; | ||
virtual void process(size_t samples) override; | ||
virtual bool inline_display(plug::ICanvas *cv, size_t width, size_t height) override; | ||
virtual void dump(dspu::IStateDumper *v) const override; | ||
}; | ||
} | ||
} | ||
|
||
} /* namespace plugins */ | ||
} /* namespace lsp */ | ||
|
||
|
||
#endif /* PRIVATE_PLUGINS_NOISE_GENERATOR_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,62 +19,62 @@ | |
# | ||
|
||
# Variables that describe dependencies | ||
LSP_3RD_PARTY_VERSION := 1.0.11 | ||
LSP_3RD_PARTY_VERSION := 1.0.12 | ||
LSP_3RD_PARTY_NAME := lsp-3rd-party | ||
LSP_3RD_PARTY_TYPE := hdr | ||
LSP_3RD_PARTY_INC_OPT := -idirafter | ||
LSP_3RD_PARTY_URL_RO := https://github.com/lsp-plugins/$(LSP_3RD_PARTY_NAME).git | ||
LSP_3RD_PARTY_URL_RW := [email protected]:lsp-plugins/$(LSP_3RD_PARTY_NAME).git | ||
|
||
LSP_COMMON_LIB_VERSION := 1.0.30 | ||
LSP_COMMON_LIB_VERSION := 1.0.31 | ||
LSP_COMMON_LIB_NAME := lsp-common-lib | ||
LSP_COMMON_LIB_TYPE := src | ||
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git | ||
LSP_COMMON_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_COMMON_LIB_NAME).git | ||
|
||
LSP_DSP_LIB_VERSION := 1.0.14 | ||
LSP_DSP_LIB_VERSION := 1.0.16 | ||
LSP_DSP_LIB_NAME := lsp-dsp-lib | ||
LSP_DSP_LIB_TYPE := src | ||
LSP_DSP_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_LIB_NAME).git | ||
LSP_DSP_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_DSP_LIB_NAME).git | ||
|
||
LSP_DSP_UNITS_VERSION := 1.0.13 | ||
LSP_DSP_UNITS_VERSION := 1.0.15 | ||
LSP_DSP_UNITS_NAME := lsp-dsp-units | ||
LSP_DSP_UNITS_TYPE := src | ||
LSP_DSP_UNITS_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_UNITS_NAME).git | ||
LSP_DSP_UNITS_URL_RW := [email protected]:lsp-plugins/$(LSP_DSP_UNITS_NAME).git | ||
|
||
LSP_LLTL_LIB_VERSION := 1.0.13 | ||
LSP_LLTL_LIB_VERSION := 1.0.14 | ||
LSP_LLTL_LIB_NAME := lsp-lltl-lib | ||
LSP_LLTL_LIB_TYPE := src | ||
LSP_LLTL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_LLTL_LIB_NAME).git | ||
LSP_LLTL_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_LLTL_LIB_NAME).git | ||
|
||
LSP_R3D_BASE_LIB_VERSION := 1.0.13 | ||
LSP_R3D_BASE_LIB_VERSION := 1.0.14 | ||
LSP_R3D_BASE_LIB_NAME := lsp-r3d-base-lib | ||
LSP_R3D_BASE_LIB_TYPE := src | ||
LSP_R3D_BASE_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git | ||
LSP_R3D_BASE_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git | ||
|
||
LSP_R3D_IFACE_VERSION := 1.0.13 | ||
LSP_R3D_IFACE_VERSION := 1.0.14 | ||
LSP_R3D_IFACE_NAME := lsp-r3d-iface | ||
LSP_R3D_IFACE_TYPE := src | ||
LSP_R3D_IFACE_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_IFACE_NAME).git | ||
LSP_R3D_IFACE_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_IFACE_NAME).git | ||
|
||
LSP_R3D_GLX_LIB_VERSION := 1.0.13 | ||
LSP_R3D_GLX_LIB_VERSION := 1.0.14 | ||
LSP_R3D_GLX_LIB_NAME := lsp-r3d-glx-lib | ||
LSP_R3D_GLX_LIB_TYPE := bin | ||
LSP_R3D_GLX_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git | ||
LSP_R3D_GLX_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git | ||
|
||
LSP_R3D_WGL_LIB_VERSION := 1.0.8 | ||
LSP_R3D_WGL_LIB_VERSION := 1.0.9 | ||
LSP_R3D_WGL_LIB_NAME := lsp-r3d-wgl-lib | ||
LSP_R3D_WGL_LIB_TYPE := bin | ||
LSP_R3D_WGL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git | ||
LSP_R3D_WGL_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git | ||
|
||
LSP_RUNTIME_LIB_VERSION := 1.0.16 | ||
LSP_RUNTIME_LIB_VERSION := 1.0.17 | ||
LSP_RUNTIME_LIB_NAME := lsp-runtime-lib | ||
LSP_RUNTIME_LIB_TYPE := src | ||
LSP_RUNTIME_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_RUNTIME_LIB_NAME).git | ||
|
@@ -86,26 +86,26 @@ LSP_TEST_FW_TYPE := src | |
LSP_TEST_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_TEST_FW_NAME).git | ||
LSP_TEST_FW_URL_RW := [email protected]:lsp-plugins/$(LSP_TEST_FW_NAME).git | ||
|
||
LSP_TK_LIB_VERSION := 1.0.13 | ||
LSP_TK_LIB_VERSION := 1.0.15 | ||
LSP_TK_LIB_NAME := lsp-tk-lib | ||
LSP_TK_LIB_TYPE := src | ||
LSP_TK_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_TK_LIB_NAME).git | ||
LSP_TK_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_TK_LIB_NAME).git | ||
|
||
LSP_WS_LIB_VERSION := 1.0.13 | ||
LSP_WS_LIB_VERSION := 1.0.15 | ||
LSP_WS_LIB_NAME := lsp-ws-lib | ||
LSP_WS_LIB_TYPE := src | ||
LSP_WS_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_WS_LIB_NAME).git | ||
LSP_WS_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_WS_LIB_NAME).git | ||
|
||
# Plugin-related module dependencies | ||
LSP_PLUGIN_FW_VERSION := 1.0.15 | ||
LSP_PLUGIN_FW_VERSION := 1.0.17 | ||
LSP_PLUGIN_FW_NAME := lsp-plugin-fw | ||
LSP_PLUGIN_FW_TYPE := src | ||
LSP_PLUGIN_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGIN_FW_NAME).git | ||
LSP_PLUGIN_FW_URL_RW := [email protected]:lsp-plugins/$(LSP_PLUGIN_FW_NAME).git | ||
|
||
LSP_PLUGINS_SHARED_VERSION := 1.0.14 | ||
LSP_PLUGINS_SHARED_VERSION := 1.0.16 | ||
LSP_PLUGINS_SHARED_NAME := lsp-plugins-shared | ||
LSP_PLUGINS_SHARED_TYPE := src | ||
LSP_PLUGINS_SHARED_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGINS_SHARED_NAME).git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copyright (C) 2022 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2022 Stefano Tronci <[email protected]> | ||
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
* (C) 2023 Stefano Tronci <[email protected]> | ||
* | ||
* This file is part of lsp-plugins | ||
* Created on: 27 Feb 2022 | ||
|
@@ -75,6 +75,40 @@ namespace lsp | |
if (meta::is_audio_in_port(p)) | ||
++nChannels; | ||
|
||
for (size_t i=0; i<meta::noise_generator::NUM_GENERATORS; ++i) | ||
{ | ||
generator_t *g = &vGenerators[i]; | ||
|
||
g->fGain = 0.0f; | ||
g->bActive = false; | ||
g->bInaudible = false; | ||
g->bUpdPlots = true; | ||
|
||
g->vBuffer = NULL; | ||
g->vFreqChart = NULL; | ||
|
||
g->pNoiseType = NULL; | ||
g->pAmplitude = NULL; | ||
g->pOffset = NULL; | ||
g->pSlSw = NULL; | ||
g->pMtSw = NULL; | ||
g->pInaSw = NULL; | ||
g->pLCGdist = NULL; | ||
g->pVelvetType = NULL; | ||
g->pVelvetWin = NULL; | ||
g->pVelvetARNd = NULL; | ||
g->pVelvetCSW = NULL; | ||
g->pVelvetCpr = NULL; | ||
g->pColorSel = NULL; | ||
g->pCslopeNPN = NULL; | ||
g->pCslopeDBO = NULL; | ||
g->pCslopeDBD = NULL; | ||
g->pFft = NULL; | ||
g->pMeterOut = NULL; | ||
g->pMsh = NULL; | ||
g->pSpectrum = NULL; | ||
} | ||
|
||
// Initialize other parameters | ||
vChannels = NULL; | ||
vFreqs = NULL; | ||
|
@@ -97,7 +131,7 @@ namespace lsp | |
|
||
noise_generator::~noise_generator() | ||
{ | ||
destroy(); | ||
do_destroy(); | ||
} | ||
|
||
ssize_t noise_generator::make_seed() const | ||
|
@@ -422,6 +456,12 @@ namespace lsp | |
} | ||
|
||
void noise_generator::destroy() | ||
{ | ||
Module::destroy(); | ||
do_destroy(); | ||
} | ||
|
||
void noise_generator::do_destroy() | ||
{ | ||
// Drop inline display data structures | ||
if (pIDisplay != NULL) | ||
|
@@ -464,9 +504,6 @@ namespace lsp | |
|
||
// Destroy analyzer | ||
sAnalyzer.destroy(); | ||
|
||
// Destroy parent module | ||
Module::destroy(); | ||
} | ||
|
||
void noise_generator::update_sample_rate(long sr) | ||
|