The reading loop in the code is:
while(!Bela_stopRequested())
{
for(size_t n = 0; n < gLowResAnalogIn.size(); ++n)
{
path[x] = '0' + n; // int to char
std::string ret = IoUtils::readTextFile(path);
gLowResAnalogIn[n] = std::atoi(ret.c_str()) / 4096.f;
}
usleep(kLowResAnalogInSleepUs);
}
and the kLowResAnalogInSleepUs
constant is defined as:
static constexpr size_t kLowResAnalogInSleepUs = 50000;
which is what's driving your sampling period. Change it to, e.g.: 10000µs to get about 100Hz.