Ok - a little more complicated than I had envisaged.
Would adding it to RTAudioCommandLine.cpp make sense? I can see two ways to handle it:
- Like the userBelaConfig in Bela_defaultSettings - look for settings.json and populate the settings with that - probably after userBelaConfig is processed.
- As part of Bela_getopt_long, by using --jsopts or similar and providing --jsopts settings.json via the Makefile (with file existence tests etc.)
I can see the various JSON cpp/h files and could probably have a go at coding something up using them.
Let me know what you'd prefer, and if we should move this conversation to the github issue instead?
Cheers