Open BertheGrandPied opened 1 year ago
Ok, first things first: Are you sure you have enabled stereo output in mozzi_config.h?
Sorry for the noise, I see you mention that, specifically.
I guess we still need more diagnostics, though. Please enable display of warnings in Arduino (if you haven't already), and post the full compilation messages. That should probably give some further hints.
And as yet another after-thought: Try moving just the #include <MozziGuts.h>
statement a bit higher up in the sketch. AFAIR, Arduino only looks at the first n lines trying to resolve which libraries to use, so I imagine something strange may be happening, there.
Hello,
I got a really strange problem using the stereo mode on a pico using pt_8211 as output (I did not test on other platforms).
The problem
My code is using a rotary encoder and mozzi and looks like that (minimal code example, I remove a max of things) :
These return an error "Compilation error: 'StereoOutput' does not name a type".
Try 1 - Switch to Mono
Switching to Mono mode in mozzi_config.h, and replacing
-> the compilation work. The problem seems linked to the stereo mode.
Try 2 - Find the disturbing element
I was able to find what make a mess but I don't uderstant why ^^. Moving the function definition of
callback_updateEncodeurRotatif()
after updateAudio and the sketch is compiled witout error :Conclusion
I don't have a clue what happen, it's really strange... I don't know if that is a clue that something wrong is happening with stereo mode... Hope that can help.
Thanks for your good work :-)
Leo