Skip to content

Commit 7a9d26f

Browse files
committed
Merge branch 'devel'
2 parents 3692cee + f8e970a commit 7a9d26f

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

modules.mk

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#
2020

2121
# Variables that describe dependencies
22-
LSP_3RD_PARTY_VERSION := 1.0.23
22+
LSP_3RD_PARTY_VERSION := 1.0.24
2323
LSP_3RD_PARTY_NAME := lsp-3rd-party
2424
LSP_3RD_PARTY_TYPE := hdr
2525
LSP_3RD_PARTY_INC_OPT := -idirafter
@@ -32,19 +32,19 @@ LSP_COMMON_LIB_TYPE := src
3232
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git
3333
LSP_COMMON_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_COMMON_LIB_NAME).git
3434

35-
LSP_DSP_LIB_VERSION := 1.0.31
35+
LSP_DSP_LIB_VERSION := 1.0.32
3636
LSP_DSP_LIB_NAME := lsp-dsp-lib
3737
LSP_DSP_LIB_TYPE := src
3838
LSP_DSP_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_LIB_NAME).git
3939
LSP_DSP_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_DSP_LIB_NAME).git
4040

41-
LSP_DSP_UNITS_VERSION := 1.0.30
41+
LSP_DSP_UNITS_VERSION := 1.0.31
4242
LSP_DSP_UNITS_NAME := lsp-dsp-units
4343
LSP_DSP_UNITS_TYPE := src
4444
LSP_DSP_UNITS_URL_RO := https://github.com/lsp-plugins/$(LSP_DSP_UNITS_NAME).git
4545
LSP_DSP_UNITS_URL_RW := [email protected]:lsp-plugins/$(LSP_DSP_UNITS_NAME).git
4646

47-
LSP_LLTL_LIB_VERSION := 1.0.26
47+
LSP_LLTL_LIB_VERSION := 1.0.27
4848
LSP_LLTL_LIB_NAME := lsp-lltl-lib
4949
LSP_LLTL_LIB_TYPE := src
5050
LSP_LLTL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_LLTL_LIB_NAME).git
@@ -74,7 +74,7 @@ LSP_R3D_WGL_LIB_TYPE := bin
7474
LSP_R3D_WGL_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git
7575
LSP_R3D_WGL_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_WGL_LIB_NAME).git
7676

77-
LSP_RUNTIME_LIB_VERSION := 1.0.29
77+
LSP_RUNTIME_LIB_VERSION := 1.0.30
7878
LSP_RUNTIME_LIB_NAME := lsp-runtime-lib
7979
LSP_RUNTIME_LIB_TYPE := src
8080
LSP_RUNTIME_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_RUNTIME_LIB_NAME).git
@@ -86,26 +86,26 @@ LSP_TEST_FW_TYPE := src
8686
LSP_TEST_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_TEST_FW_NAME).git
8787
LSP_TEST_FW_URL_RW := [email protected]:lsp-plugins/$(LSP_TEST_FW_NAME).git
8888

89-
LSP_TK_LIB_VERSION := 1.0.29
89+
LSP_TK_LIB_VERSION := 1.0.30
9090
LSP_TK_LIB_NAME := lsp-tk-lib
9191
LSP_TK_LIB_TYPE := src
9292
LSP_TK_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_TK_LIB_NAME).git
9393
LSP_TK_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_TK_LIB_NAME).git
9494

95-
LSP_WS_LIB_VERSION := 1.0.29
95+
LSP_WS_LIB_VERSION := 1.0.30
9696
LSP_WS_LIB_NAME := lsp-ws-lib
9797
LSP_WS_LIB_TYPE := src
9898
LSP_WS_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_WS_LIB_NAME).git
9999
LSP_WS_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_WS_LIB_NAME).git
100100

101101
# Plugin-related module dependencies
102-
LSP_PLUGIN_FW_VERSION := 1.0.31
102+
LSP_PLUGIN_FW_VERSION := 1.0.32
103103
LSP_PLUGIN_FW_NAME := lsp-plugin-fw
104104
LSP_PLUGIN_FW_TYPE := src
105105
LSP_PLUGIN_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGIN_FW_NAME).git
106106
LSP_PLUGIN_FW_URL_RW := [email protected]:lsp-plugins/$(LSP_PLUGIN_FW_NAME).git
107107

108-
LSP_PLUGINS_SHARED_VERSION := 1.0.30
108+
LSP_PLUGINS_SHARED_VERSION := 1.0.31
109109
LSP_PLUGINS_SHARED_NAME := lsp-plugins-shared
110110
LSP_PLUGINS_SHARED_TYPE := src
111111
LSP_PLUGINS_SHARED_URL_RO := https://github.com/lsp-plugins/$(LSP_PLUGINS_SHARED_NAME).git

src/main/plug/plugin_template.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929
#include <private/plugins/plugin_template.h>
3030

31-
/* The size of temporary buffer for audio processing */
32-
#define BUFFER_SIZE 0x1000U
33-
3431
namespace lsp
3532
{
3633
namespace plugins
3734
{
35+
/* The size of temporary buffer for audio processing */
36+
static constexpr size_t BUFFER_SIZE = 0x200;
37+
3838
//---------------------------------------------------------------------
3939
// Plugin factory
4040
static const meta::plugin_t *plugins[] =
@@ -275,18 +275,18 @@ namespace lsp
275275
// it gets processed by the dspu::Bypass processor.
276276
for (size_t n=0; n<samples; )
277277
{
278-
size_t count = lsp_min(samples - n, BUFFER_SIZE);
278+
const size_t count = lsp_min(samples - n, BUFFER_SIZE);
279279

280280
// Pre-process signal (fill buffer)
281-
c->sLine.process_ramping(vBuffer, in, c->fWetGain, c->nDelay, samples);
281+
c->sLine.process_ramping(vBuffer, in, c->fWetGain, c->nDelay, count);
282282

283283
// Apply 'dry' control
284284
if (c->fDryGain > 0.0f)
285285
dsp::fmadd_k3(vBuffer, in, c->fDryGain, count);
286286

287287
// Compute the gain of input and output signal.
288-
in_gain = lsp_max(in_gain, dsp::abs_max(in, samples));
289-
out_gain = lsp_max(out_gain, dsp::abs_max(vBuffer, samples));
288+
in_gain = lsp_max(in_gain, dsp::abs_max(in, count));
289+
out_gain = lsp_max(out_gain, dsp::abs_max(vBuffer, count));
290290

291291
// Process the
292292
// - dry (unprocessed) signal stored in 'in'
@@ -295,9 +295,9 @@ namespace lsp
295295
c->sBypass.process(out, in, vBuffer, count);
296296

297297
// Increment pointers
298-
in += count;
299-
out += count;
300-
n += count;
298+
in += count;
299+
out += count;
300+
n += count;
301301
}
302302

303303
// Update meters

0 commit comments

Comments
 (0)