How to activate the vult example dsp.vult instead the example in main.cpp
wehrend opened this issue · 3 comments
I've seen the example video from Floyd Steinberg where he claims that the dsp.vult can be replaced
with any other example (noise, sine). This might work for software simulation of vult.
But when compiling for the picoadk firmware I get the following errors:
[ 41%] Building CXX object CMakeFiles/main.dir/src/main.cpp.obj
/home/sven/development/PicoADK-Firmware-Template/src/main.cpp: In function 'void i2s_callback_func()':
/home/sven/development/PicoADK-Firmware-Template/src/main.cpp:230:32: error: 'Dsp_process_ret_0' was not declared in this scope; did you mean 'Dsp_process_type'?
230 | fix16_t left_out = Dsp_process_ret_0(ctx);
| ^~~~~~~~~~~~~~~~~
| Dsp_process_type
/home/sven/development/PicoADK-Firmware-Template/src/main.cpp:231:33: error: 'Dsp_process_ret_1' was not declared in this scope; did you mean 'Dsp_process_type'?
231 | fix16_t right_out = Dsp_process_ret_1(ctx);
| ^~~~~~~~~~~~~~~~~
| Dsp_process_type
make[2]: *** [CMakeFiles/main.dir/build.make:97: CMakeFiles/main.dir/src/main.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:1915: CMakeFiles/main.dir/all] Error 2
(I ommited the simple error of too few parameters in Dsp_Process) as I could solve this one for myself.
I've also seen that the header file in question vult.h must be generated from vultin.h and vultin.cpp, But I could
not find the original functions for this two functions inside.
To Reproduce
Steps to reproduce the behavior:
copy the example noise.vult (or sine.vult) over dsp.vult
export PICO_SDK_FETCH_FROM_GIT=1
mkdir build && cd build
cmake ..
make
Expected behavior
invoking the noise.vult (or sine.vult) example given in dsp.vult
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Debian 12
Could you retry? I just commited a fix.
This is only a change for the cmake file, I see.
I dont think that this would solve the issue with the vult sources.