audiomatt Here's the error after dragging the contents of the example into a new project:
not sure how you obtained that file, but there seems to be a word missing:
audiomatt if (!(sndfile = (file.c_str(), SFM_READ, &sfinfo))) {
this is missing a function call before the third opening parenthesis. The lines you find in the examples are:
if (!(sndfile = sf_open (file.c_str(), SFM_READ, &sfinfo))) {
(notice the sf_open
, which is missing in your code).
audiomatt I'm still getting weird errors. I'm attempting to simply copy the Audio/Sample-Loader example by taking all the relevant files from github and dragging them to a new document.
This should work, as long as you download the files "raw" from github, but why do you do this instead of using the example code straight from the Bela IDE?
This could be due to a temporary issue with the I2c bus that is used to talk to the codec, which can be rectified by powering off and back on. If that is the case, the full error message would have been:
Running /root/Bela/projects/basic/basic
Error: unable to initialise audio codec
Error: unable to initialise audio
Makefile:553: recipe for target 'runide' failed
make: *** [runide] Error 1