Browse Source

updated LibPd to version 0.12.3

pull/57/head
max 3 years ago
parent
commit
d8788ba11b
2 changed files with 6 additions and 6 deletions
  1. +5
    -5
      Makefile
  2. +1
    -1
      src/LibPDEngine.cpp

+ 5
- 5
Makefile View File

@@ -210,21 +210,21 @@ OBJECTS += $(libpd)
DEPS += $(libpd)
FLAGS += -Idep/include/libpd -DHAVE_LIBDL

$(libpd):
cd dep && git clone "https://github.com/libpd/libpd.git" --recursive
cd dep/libpd && git checkout 5772a612527f06597d44d195843307ad0e3578fe

ifdef ARCH_WIN
# PD_INTERNAL leaves the function declarations for libpd unchanged
# not specifying that flag would enable the "EXTERN __declspec(dllexport) extern" macro
# which throws a linker error. I guess this macro should only be used for the windows
# specific .dll dynamic linking format.
# The corresponding #define resides in "m_pd.h" inside th Pure Data sources
FLAGS += -DPD_INTERNAL
FLAGS += -DPD_INTERNAL -Ofast
LDFLAGS += -Wl,--export-all-symbols
LDFLAGS += -lws2_32
endif

$(libpd):
cd dep && git clone "https://github.com/libpd/libpd.git" --recursive
cd dep/libpd && git checkout 551f7512e8f934ea8e2a20af9467581a5825b9cd

ifdef ARCH_MAC
# libpd's Makefile is handmade, and it doesn't honor CFLAGS and LDFLAGS environments.
# So in order for Mac 10.15 (for example) to make a build that works on Mac 10.7+, we have to manually add DEP_MAC_SDK_FLAGS to CFLAGS and LDFLAGS.


+ 1
- 1
src/LibPDEngine.cpp View File

@@ -149,7 +149,7 @@ struct LibPDEngine : ScriptEngine {
for (int s = 0; s < _pd_block_size; s++) {
for (int r = 0; r < rows; r++) {
block->outputs[r][s] = _output[s * rows + r]; // scale up again to +-5V signal
// there is a correction multilpier, because libpd's output is too quiet(?)
// there is a correction multiplier, because libpd's output is too quiet(?)
}
}



Loading…
Cancel
Save