Has anyone gotten this to compile and work correctly? I’m actually not able to compile any of the examples “out of the box”. It looks like there is a variable mis-match for the audiocallback. Even just running the saw_test I get the following error that prevents me from compiling:
saw_test.cpp: In function ‘int main()’:
saw_test.cpp:33:26: error: invalid conversion from ‘void ()(float**, float**, size_t)’ {aka 'void ()(float**, float**, unsigned int)’} to ‘dsy_audio_callback’ {aka ‘void ()(float, float*, unsigned int)’} [-fpermissive]
33 | hardware->StartAudio(audiocallback);
| ^~~~~~~~~~~~~
| |
| void ()(float**, float**, size_t) {aka void ()(float**, float**, unsigned int)}
In file included from daisy_boards.h:7,
from saw_test.cpp:3:
…/…/libdaisy/src/daisy_seed.h:64:40: note: initializing argument 1 of ‘void daisy::DaisySeed::StartAudio(dsy_audio_callback)’
64 | void StartAudio(dsy_audio_callback cb);
| ~~~~~~~~~~~~~~~~~~~^~
If I change the following code from:
void audiocallback(float **in, float **out, size_t size)
{
hv.process(in, out, size);
ProcessControls();
}
To:
void audiocallback(float *in, float *out, size_t size)
{
hv.process(&in, &out, size);
ProcessControls();
}
It compiles - and I get a saw wave - but in the pod_test example - I only get envelopes generated from button 1 and the audio comes out of both speakers.
I wasn’t able to get any of my own projects to export correctly either. It would initially provide an error saying that it couldn’t create the directory. If I create the directory for it - it creates the *.cpp, MakeFile, and daisy_boards.h file, but no “c”, “hv”, or “ir” folders. I tried running my patch through Heavy as a standalone python script and then tying the pieces together - but I wasn’t getting any sound.
Let me know if other people are having different experiences - maybe I’m missing a step or maybe I have an outdated / wrong version of libdaisy.