Outputs from Max should automatically be patched to 4 different physical outputs on Bela. The first two will be the L and R channels on the BelaMini cape while the other two will be the 0 and 1 outputs on the BelaMiniMultichannel cape. If you want to change that assignment you will need to modify these lines:
for(unsigned int c = 0; c < nOutChannels; ++c)
{
if(c < context->audioOutChannels)
outputs[c] = context->audioOut + c * nFrames;
else
outputs[c] = context->analogOut + (c - (context->audioOutChannels)) * nFrames;
}
As you are on Mini, you can ignore the analogOut part. You could remove the for loop and replace these with some hardcoded values, e.g.:
outputs[0] = context->audioOut + 2 * nFrames; // rnbo out 0 to Bela out 2 (0 on BelaMiniMultichannel
outputs[1] = context->audioOut + 0 * nFrames; // rnbo out 1 to Bela out 0 (Left on BelaMini)
outputs[2] = context->audioOut + 4 * nFrames; // rnbo out 2 to Bela out 4 (2 on BelaMiniMultichannel)
outputs[3] = context->audioOut + 7 * nFrames; // rnbo out 3 to Bela out 7 (5 on BelaMiniMultichannel)