Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
|
*userData
argument This sketch demonstrates how to pass command line arguments using the *userData
argument inside the setup()
function.
In main.cpp we first parse a command line argument -f
and allocate its value to the variable frequency
. We then pass the address of this variable when we call Bela_initAudio()
. The variable can now be accessed from the setup()
and render()
functions inside render.cpp.