unclechu / lv2-ladspa-bit-crusher Goto Github PK
View Code? Open in Web Editor NEWBit Crusher Audio Plug-In (LV2 and LADSPA)
License: GNU General Public License v3.0
Bit Crusher Audio Plug-In (LV2 and LADSPA)
License: GNU General Public License v3.0
Ubuntu 22.04. Any more details about the system you might need?
rm -rf bit-crusher.lv2
mkdir bit-crusher.lv2
gcc -shared -fPIC -DPIC src/bit-crusher.c src/lv2.c -o bit-crusher.lv2/bit-crusher.so
In file included from src/lv2.c:42:
src/instantiate.h: In function 'instantiate_mono':
src/instantiate.h:16:46: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
16 | Plugin_MONO *plugin = (Plugin_MONO *)malloc(sizeof(Plugin_MONO));
| ^~~~~~
src/instantiate.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
+++ |+#include <stdlib.h>
1 | /*
src/instantiate.h:16:46: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
16 | Plugin_MONO *plugin = (Plugin_MONO *)malloc(sizeof(Plugin_MONO));
| ^~~~~~
src/instantiate.h:16:46: note: include '<stdlib.h>' or provide a declaration of 'malloc'
src/instantiate.h: In function 'instantiate_stereo':
src/instantiate.h:27:50: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
27 | Plugin_STEREO *plugin = (Plugin_STEREO *)malloc(sizeof(Plugin_STEREO));
| ^~~~~~
src/instantiate.h:27:50: note: include '<stdlib.h>' or provide a declaration of 'malloc'
In file included from src/lv2.c:69:
src/cleanup.h: In function 'cleanup_mono':
src/cleanup.h:14:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
14 | free( plugin->state );
| ^~~~
src/cleanup.h:1:1: note: include '<stdlib.h>' or provide a declaration of 'free'
+++ |+#include <stdlib.h>
1 | /*
src/cleanup.h:14:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
14 | free( plugin->state );
| ^~~~
src/cleanup.h:14:9: note: include '<stdlib.h>' or provide a declaration of 'free'
src/cleanup.h: In function 'cleanup_stereo':
src/cleanup.h:21:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch]
21 | free( plugin->state_l );
| ^~~~
src/cleanup.h:21:9: note: include '<stdlib.h>' or provide a declaration of 'free'
src/lv2.c: At top level:
src/lv2.c:77:9: error: 'NULL' undeclared here (not in a function)
77 | NULL,
| ^~~~
src/lv2.c:70:1: note: 'NULL' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
69 | #include "cleanup.h"
+++ |+#include <stddef.h>
70 |
make: *** [Makefile:9: lv2] Error 1
When I open the plugin with Audacity, it reported following error:
lilv_lib_open(): error: Failed to open library /usr/lib/lv2/bit-crusher.lv2/bit-crusher.so (/usr/lib/lv2/bit-crusher.lv2/bit-crusher.so: undefined symbol: prepare_downsampling_knob)
LMMS however raises segmentation fault when audio is processed by plugin:
Notice: could not set realtime priority.
VST sync support disabled in your configuration
[1] 2766 segmentation fault (core dumped) lmms
I've made a pull request with proposal to fix these errors. ( #2 )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.