Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.
/ Re-Nooice Public archive

Commit a9b6584

Browse files
committed
Optimizations
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 111a40d commit a9b6584

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

src/Makefile

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Makefile for DISTRHO Plugins
33
# SPDX-License-Identifier: ISC
44

5+
# ---------------------------------------------------------------------------------------------------------------------
6+
# Include base makefile for a few definitions
7+
8+
include ../deps/dpf/Makefile.base.mk
9+
510
# ---------------------------------------------------------------------------------------------------------------------
611
# Project name, used for binaries
712

@@ -31,7 +36,7 @@ FILES_DSP = \
3136
$(RNNOISE_PATH)/src/rnnoise_data.c \
3237
$(RNNOISE_PATH)/src/rnnoise_tables.c
3338

34-
ifeq ($(RTCD),1)
39+
ifeq ($(CPU_I386_OR_X86_64),true)
3540
FILES_DSP += \
3641
$(RNNOISE_PATH)/src/x86/nnet_avx2.c \
3742
$(RNNOISE_PATH)/src/x86/nnet_sse4_1.c \
@@ -44,22 +49,26 @@ endif
4449

4550
include ../deps/dpf/Makefile.plugins.mk
4651

47-
# BASE_FLAGS += -DDISABLE_DEBUG_FLOAT
48-
# BASE_FLAGS += -DFLOAT_APPROX
52+
BASE_FLAGS += -DDISABLE_DEBUG_FLOAT
53+
BASE_FLAGS += -DFLOAT_APPROX
4954
BASE_FLAGS += -DRNNOISE_EXPORT=
5055
BASE_FLAGS += -I$(RNNOISE_PATH)/include
5156
BASE_FLAGS += -I$(RNNOISE_PATH)/src
52-
BASE_FLAGS += -fno-fast-math
57+
# BASE_FLAGS += -fno-fast-math
58+
# -Wno-sign-compare -Wno-parentheses -Wno-long-long
5359

54-
ifeq ($(RTCD),1)
55-
BASE_FLAGS += -DCPU_INFO_BY_ASM -DRNN_ENABLE_X86_RTCD -mavx -mfma -mavx2 -msse4.1
56-
endif
60+
ifeq ($(CPU_I386_OR_X86_64),true)
61+
BASE_FLAGS += -DCPU_INFO_BY_ASM -DRNN_ENABLE_X86_RTCD
5762

58-
# -Wno-sign-compare -Wno-parentheses -Wno-long-long
63+
$(BUILD_DIR)/$(RNNOISE_PATH)/src/x86/nnet_avx2.c.o: BASE_FLAGS += -mavx -mfma -mavx2
64+
65+
$(BUILD_DIR)/$(RNNOISE_PATH)/src/x86/nnet_sse4_1.c.o: BASE_FLAGS += -msse4.1
66+
67+
endif
5968

6069
# ---------------------------------------------------------------------------------------------------------------------
6170
# Enable all possible plugin types
6271

63-
all: au clap dssi lv2_sep vst2 vst3
72+
all: clap dssi lv2_sep vst2 vst3
6473

6574
# ---------------------------------------------------------------------------------------------------------------------

src/PluginDSP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class ReNooicePlugin : public Plugin
177177
case kParamAverageVAD:
178178
parameter.hints |= kParameterIsOutput;
179179
parameter.name = "Average VAD";
180-
parameter.symbol = "max_vad";
180+
parameter.symbol = "avg_vad";
181181
break;
182182
case kParamMinimumVAD:
183183
parameter.hints |= kParameterIsOutput;

0 commit comments

Comments
 (0)