Geiger Did the sample actually play?
no sounds was emitted. It is unclear to me whether the wrapper needs to do any work to make that happen. The only mention of dependencies.json
in the rnbo-generated code is in some example code embedded in RNBO_DataRefList.h
:
/**
* Wrapper class for exported RNBO dependencies. After reading a
* dependencies.json file as a string, use this class to retrieve data ref
* description information.
*
* @code{.cpp}
* #include <fstream>
* #include <sstream>
*
* // Read in the dependencies.json file as a std::string
* std::ifstream t("../dependencies.json");
* std::stringstream buffer;
* buffer << t.rdbuf();
*
* // Parse dependencies into a RNBO DataRefList
* DataRefList list(buffer.str());
* @endcode
*/
, but I do not see DataRefList
being used anywhere in any of the rnbo examples, not even rnbo.oscquery.runner... Hmm... it looks like there is some more explicit docs here.
[ fifteen minutes later ]
OK, here's an updated rnbo.examble.bela with the dependencies loading in place: https://github.com/giuliomoro/rnbo.example.bela/blob/dev/render.cpp (note this is the dev
branch). If you update your project to that and uncomment this line at the top of render.cpp:
//#define BELA_RNBO_LOAD_DEPENDENCIES // uncomment to load dependencies such as audio files
and add your rnbo_source.cpp
in, then it does play the sample when it starts.
Give it a try and see if you hit any more roadblocks.