RNBO CMake Tutorial Troubles

Liam Fisher's icon

Liam Fisher

9月 02 2024 | 8:18 午後

Trying to do this tutorial for CMake. Got stuck with the following error:

" RNBOProject\rnbo\src\RNBO_CoreObject.h(449,43): error C2661: 'RNBO::AudioInBufferConverter<I>::AudioInBufferConverter': no overloaded function takes 4 arguments ".

My main.cpp and CMakeLists.txt files are the same as in the tutorial and my patch is just [cycle 440] -> [out~ 1] , although I've tried with multiple IO configurations.

I am on Windows using Visual Studio Code.

Any suggestions??

Liam Fisher's icon

Liam Fisher

9月 02 2024 | 8:28 午後

Nevermind...

This seemed to work

    // Create a const pointer to const pointer for input (even though it's null)
    const RNBO::SampleValue* const * inputs = nullptr;
    // Create a pointer to pointer for output
    RNBO::SampleValue** outputsArray = new RNBO::SampleValue*[1];
    outputsArray[0] = new RNBO::SampleValue[64];

    // Create a const pointer to pointer for the process function
    RNBO::SampleValue* const * outputs = outputsArray;
    // Call process with correct types
    rnboObject.process(inputs, 0, outputs, 1, 64);