Skip to content

Commit f26ea86

Browse files
committed
Release 1.0.26
* Fixed compilation on modern compilers. * Updated build scripts and dependencies.
2 parents edf5e14 + a8e0597 commit f26ea86

File tree

9 files changed

+88
-63
lines changed

9 files changed

+88
-63
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* RECENT CHANGES
33
*******************************************************************************
44

5+
=== 1.0.26 ===
6+
* Fixed compilation on modern compilers.
7+
* Updated build scripts and dependencies.
8+
59
=== 1.0.25 ===
610
* Added pre-reverse of the loaded sample before cuts, stretches and fades applied.
711
* Added directory contents view and navigation of currently loaded sample.

dependencies.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ DEPENDENCIES = \
3737
TEST_DEPENDENCIES = \
3838
LSP_TEST_FW
3939

40-
DEFAULT_FEATURES = clap doc ladspa lv2 ui vst2 vst3 xdg
40+
DEFAULT_FEATURES = clap doc ladspa lv2 ui vst2 vst3
4141

4242
#------------------------------------------------------------------------------
4343
# Linux dependencies
@@ -60,7 +60,7 @@ LINUX_TEST_DEPENDENCIES =
6060
ifeq ($(PLATFORM),Linux)
6161
DEPENDENCIES += $(LINUX_DEPENDENCIES)
6262
TEST_DEPENDENCIES += $(LINUX_TEST_DEPENDENCIES)
63-
DEFAULT_FEATURES += jack gst
63+
DEFAULT_FEATURES += jack gst xdg
6464
endif
6565

6666
#------------------------------------------------------------------------------
@@ -85,7 +85,7 @@ BSD_TEST_DEPENDENCIES =
8585
ifeq ($(PLATFORM),BSD)
8686
DEPENDENCIES += $(BSD_DEPENDENCIES)
8787
TEST_DEPENDENCIES += $(BSD_TEST_DEPENDENCIES)
88-
DEFAULT_FEATURES += jack gst
88+
DEFAULT_FEATURES += jack gst xdg
8989
endif
9090

9191

make/configure.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ MERGED_DEPENDENCIES := \
5353
$(PLUGIN_SHARED)
5454
UNIQ_MERGED_DEPENDENCIES := $(call uniq, $(MERGED_DEPENDENCIES))
5555
DEPENDENCIES = $(UNIQ_MERGED_DEPENDENCIES)
56-
FEATURES := $(sort $(call subtraction,$(SUB_FEATURES),$(DEFAULT_FEATURES) $(ADD_FEATURES)))
56+
BUILD_FEATURES := $(sort $(call subtraction,$(SUB_FEATURES),$(if $(FEATURES),$(FEATURES),$(DEFAULT_FEATURES)) $(ADD_FEATURES)))
5757

5858
# Determine versions
5959
ifeq ($(findstring -devel,$(ARTIFACT_VERSION)),-devel)
@@ -320,7 +320,7 @@ $(CONFIG_VARS): prepare
320320
config: $(CONFIG_VARS)
321321
echo "Host architecture: $(HOST_ARCHITECTURE_FAMILY)/$(HOST_ARCHITECTURE) ($(HOST_ARCHITECTURE_CFLAGS))"
322322
echo "Architecture: $(ARCHITECTURE_FAMILY)/$(ARCHITECTURE) ($(ARCHITECTURE_CFLAGS))"
323-
echo "Features: $(FEATURES)"
323+
echo "Features: $(BUILD_FEATURES)"
324324
echo "Configured OK"
325325

326326
help: | pathvars toolvars sysvars

make/system.mk

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ else
5353
endif
5454
BUILD_ARCH := $(if $(ARCHITECTURE),$(ARCHITECTURE),$(HOST_BUILD_ARCH))
5555

56+
ifeq ($(PLATFORM),Linux)
57+
OBJ_LDFLAGS_X86 = -m elf_i386
58+
OBJ_LDFLAGS_X86_64 = -m elf_x86_64
59+
else ifeq ($(PLATFORM),BSD)
60+
OBJ_LDFLAGS_X86 = -m elf_i386
61+
OBJ_LDFLAGS_X86_64 = -m elf_x86_64
62+
else ifeq ($(PLATFORM),Windows)
63+
OBJ_LDFLAGS_X86 = -m i386pe
64+
OBJ_LDFLAGS_X86_64 = -m i386pep
65+
endif
66+
5667
# Set actual architecture for HOST and TARGET builds
5768
# The current architecture can be obtained by: gcc -Q --help=target
5869
define detect_architecture =
@@ -100,30 +111,37 @@ define detect_architecture =
100111
$(2)_NAME = x86_64
101112
$(2)_FAMILY = x86_64
102113
$(2)_CFLAGS := -march=x86-64 -m64
114+
$(2)_LDFLAGS := $(OBJ_LDFLAGS_X86_64)
103115
else ifeq ($(patsubst %amd64%,amd64,$(1)),amd64)
104116
$(2)_NAME = x86_64
105117
$(2)_FAMILY = x86_64
106118
$(2)_CFLAGS := -march=x86-64 -m64
119+
$(2)_LDFLAGS := $(OBJ_LDFLAGS_X86_64)
107120
else ifeq ($(patsubst %AMD64%,AMD64,$(1)),AMD64)
108121
$(2)_NAME = x86_64
109122
$(2)_FAMILY = x86_64
110123
$(2)_CFLAGS := -march=x86-64 -m64
124+
$(2)_LDFLAGS := $(OBJ_LDFLAGS_X86_64)
111125
else ifeq ($(1),i86pc)
112126
$(2)_NAME = x86_64
113127
$(2)_FAMILY = x86_64
114128
$(2)_CFLAGS := -march=x86-64 -m64
129+
$(2)_LDFLAGS := $(OBJ_LDFLAGS_X86_64)
115130
else ifeq ($(patsubst %i686%,i686,$(1)),i686)
116131
$(2)_NAME = i686
117132
$(2)_FAMILY = ia32
118133
$(2)_CFLAGS := -march=i686 -m32
134+
$(2)_LDFLAGS := $(OBJ_LDFLAGS_X86)
119135
else ifeq ($(patsubst i%86,i586,$(1)),i586)
120136
$(2)_NAME = i586
121137
$(2)_FAMILY = ia32
122138
$(2)_CFLAGS := -march=i586 -m32
139+
$(2)_LDFLAGS := $(OBJ_LDFLAGS_X86)
123140
else ifeq ($(1),x86)
124141
$(2)_NAME = i686
125142
$(2)_FAMILY = ia32
126143
$(2)_CFLAGS := -march=i686 -m32
144+
$(2)_LDFLAGS := $(OBJ_LDFLAGS_X86)
127145
else ifeq ($(1),riscv32)
128146
$(2)_NAME = riscv32
129147
$(2)_FAMILY = riscv32
@@ -191,11 +209,11 @@ COMMON_VARS = \
191209
ARCHITECTURE \
192210
ARCHITECTURE_FAMILY \
193211
ARCHITECTURE_CFLAGS \
212+
BUILD_FEATURES \
194213
CROSS_COMPILE \
195214
DEBUG \
196215
EXECUTABLE_EXT \
197216
EXPORT_SYMBOLS \
198-
FEATURES \
199217
HOST_ARCHITECTURE \
200218
HOST_ARCHITECTURE_FAMILY \
201219
HOST_ARCHITECTURE_CFLAGS \

modules.mk

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

2121
# Variables that describe dependencies
22-
LSP_3RD_PARTY_VERSION := 1.0.18
22+
LSP_3RD_PARTY_VERSION := 1.0.19
2323
LSP_3RD_PARTY_NAME := lsp-3rd-party
2424
LSP_3RD_PARTY_TYPE := hdr
2525
LSP_3RD_PARTY_INC_OPT := -idirafter
2626
LSP_3RD_PARTY_URL_RO := https://github.com/lsp-plugins/$(LSP_3RD_PARTY_NAME).git
2727
LSP_3RD_PARTY_URL_RW := [email protected]:lsp-plugins/$(LSP_3RD_PARTY_NAME).git
2828

29-
LSP_COMMON_LIB_VERSION := 1.0.38
29+
LSP_COMMON_LIB_VERSION := 1.0.39
3030
LSP_COMMON_LIB_NAME := lsp-common-lib
3131
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.26
35+
LSP_DSP_LIB_VERSION := 1.0.27
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.25
41+
LSP_DSP_UNITS_VERSION := 1.0.26
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.21
47+
LSP_LLTL_LIB_VERSION := 1.0.22
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
5151
LSP_LLTL_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_LLTL_LIB_NAME).git
5252

53-
LSP_R3D_BASE_LIB_VERSION := 1.0.20
53+
LSP_R3D_BASE_LIB_VERSION := 1.0.21
5454
LSP_R3D_BASE_LIB_NAME := lsp-r3d-base-lib
5555
LSP_R3D_BASE_LIB_TYPE := src
5656
LSP_R3D_BASE_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git
5757
LSP_R3D_BASE_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_BASE_LIB_NAME).git
5858

59-
LSP_R3D_IFACE_VERSION := 1.0.20
59+
LSP_R3D_IFACE_VERSION := 1.0.21
6060
LSP_R3D_IFACE_NAME := lsp-r3d-iface
6161
LSP_R3D_IFACE_TYPE := src
6262
LSP_R3D_IFACE_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_IFACE_NAME).git
6363
LSP_R3D_IFACE_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_IFACE_NAME).git
6464

65-
LSP_R3D_GLX_LIB_VERSION := 1.0.20
65+
LSP_R3D_GLX_LIB_VERSION := 1.0.21
6666
LSP_R3D_GLX_LIB_NAME := lsp-r3d-glx-lib
6767
LSP_R3D_GLX_LIB_TYPE := bin
6868
LSP_R3D_GLX_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git
6969
LSP_R3D_GLX_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_R3D_GLX_LIB_NAME).git
7070

71-
LSP_R3D_WGL_LIB_VERSION := 1.0.15
71+
LSP_R3D_WGL_LIB_VERSION := 1.0.16
7272
LSP_R3D_WGL_LIB_NAME := lsp-r3d-wgl-lib
7373
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.24
77+
LSP_RUNTIME_LIB_VERSION := 1.0.25
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
8181
LSP_RUNTIME_LIB_URL_RW := [email protected]:lsp-plugins/$(LSP_RUNTIME_LIB_NAME).git
8282

83-
LSP_TEST_FW_VERSION := 1.0.27
83+
LSP_TEST_FW_VERSION := 1.0.28
8484
LSP_TEST_FW_NAME := lsp-test-fw
8585
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.24
89+
LSP_TK_LIB_VERSION := 1.0.25
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.24
95+
LSP_WS_LIB_VERSION := 1.0.25
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.26
102+
LSP_PLUGIN_FW_VERSION := 1.0.27
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.25
108+
LSP_PLUGINS_SHARED_VERSION := 1.0.26
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

project.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ARTIFACT_TYPE = plug
2525
ARTIFACT_DESC = LSP Sampler Plugin Series
2626
ARTIFACT_HEADERS = lsp-plug.in
2727
ARTIFACT_EXPORT_HEADERS = 0
28-
ARTIFACT_VERSION = 1.0.25
28+
ARTIFACT_VERSION = 1.0.26
2929

3030

3131

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ARTIFACT_OBJ = \
6363
$(ARTIFACT_OBJ_META) \
6464
$(ARTIFACT_OBJ_DSP) \
6565
$(ARTIFACT_OBJ_SHARED) \
66-
$(call fcheck,ui,$(FEATURES),$(ARTIFACT_OBJ_UI))
66+
$(call fcheck,ui,$(BUILD_FEATURES),$(ARTIFACT_OBJ_UI))
6767

6868
CXX_SRC_STUB = $(ARTIFACT_BIN)/stub.cpp
6969
CXX_SRC_MAIN_META = $(call rwildcard, main/meta, *.cpp)

src/main/meta/sampler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#define LSP_PLUGINS_SAMPLER_VERSION_MAJOR 1
2828
#define LSP_PLUGINS_SAMPLER_VERSION_MINOR 0
29-
#define LSP_PLUGINS_SAMPLER_VERSION_MICRO 25
29+
#define LSP_PLUGINS_SAMPLER_VERSION_MICRO 26
3030

3131
#define LSP_PLUGINS_SAMPLER_VERSION \
3232
LSP_MODULE_VERSION( \

src/main/plug/sampler.cpp

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -31,48 +31,51 @@ namespace lsp
3131
{
3232
//---------------------------------------------------------------------
3333
// Plugin factory
34-
typedef struct plugin_settings_t
34+
inline namespace
3535
{
36-
const meta::plugin_t *metadata;
37-
uint8_t samplers;
38-
uint8_t channels;
39-
bool dry_ports;
40-
} plugin_settings_t;
36+
typedef struct plugin_settings_t
37+
{
38+
const meta::plugin_t *metadata;
39+
uint8_t samplers;
40+
uint8_t channels;
41+
bool dry_ports;
42+
} plugin_settings_t;
4143

42-
static const meta::plugin_t *plugins[] =
43-
{
44-
&meta::sampler_mono,
45-
&meta::sampler_stereo,
46-
&meta::multisampler_x12,
47-
&meta::multisampler_x24,
48-
&meta::multisampler_x48,
49-
&meta::multisampler_x12_do,
50-
&meta::multisampler_x24_do,
51-
&meta::multisampler_x48_do
52-
};
53-
54-
static const plugin_settings_t plugin_settings[] =
55-
{
56-
{ &meta::sampler_mono, 1, 1, false },
57-
{ &meta::sampler_stereo, 1, 2, false },
58-
{ &meta::multisampler_x12, 12, 2, false },
59-
{ &meta::multisampler_x24, 24, 2, false },
60-
{ &meta::multisampler_x48, 48, 2, false },
61-
{ &meta::multisampler_x12_do, 12, 2, true },
62-
{ &meta::multisampler_x24_do, 24, 2, true },
63-
{ &meta::multisampler_x48_do, 48, 2, true },
64-
{ NULL, 0, 0, false }
65-
};
66-
67-
static plug::Module *plugin_factory(const meta::plugin_t *meta)
68-
{
69-
for (const plugin_settings_t *s = plugin_settings; s->metadata != NULL; ++s)
70-
if (s->metadata == meta)
71-
return new sampler(s->metadata, s->samplers, s->channels, s->dry_ports);
72-
return NULL;
73-
}
44+
static const meta::plugin_t *plugins[] =
45+
{
46+
&meta::sampler_mono,
47+
&meta::sampler_stereo,
48+
&meta::multisampler_x12,
49+
&meta::multisampler_x24,
50+
&meta::multisampler_x48,
51+
&meta::multisampler_x12_do,
52+
&meta::multisampler_x24_do,
53+
&meta::multisampler_x48_do
54+
};
55+
56+
static const plugin_settings_t plugin_settings[] =
57+
{
58+
{ &meta::sampler_mono, 1, 1, false },
59+
{ &meta::sampler_stereo, 1, 2, false },
60+
{ &meta::multisampler_x12, 12, 2, false },
61+
{ &meta::multisampler_x24, 24, 2, false },
62+
{ &meta::multisampler_x48, 48, 2, false },
63+
{ &meta::multisampler_x12_do, 12, 2, true },
64+
{ &meta::multisampler_x24_do, 24, 2, true },
65+
{ &meta::multisampler_x48_do, 48, 2, true },
66+
{ NULL, 0, 0, false }
67+
};
68+
69+
static plug::Module *plugin_factory(const meta::plugin_t *meta)
70+
{
71+
for (const plugin_settings_t *s = plugin_settings; s->metadata != NULL; ++s)
72+
if (s->metadata == meta)
73+
return new sampler(s->metadata, s->samplers, s->channels, s->dry_ports);
74+
return NULL;
75+
}
7476

75-
static plug::Factory factory(plugin_factory, plugins, 8);
77+
static plug::Factory factory(plugin_factory, plugins, 8);
78+
} /* inline namespace */
7679

7780
//-------------------------------------------------------------------------
7881
sampler::sampler(const meta::plugin_t *metadata, size_t samplers, size_t channels, bool dry_ports):

0 commit comments

Comments
 (0)