numSamples in FMOD_DSP_METERING_INFO. How to change it?

Is it possible to change the number of samples over which RMS is calculated, when using DSP::getMeteringInfo?


Hi Matthew,
The only thing I could suggest, is that the length is controlled by the DSP buffer size. It is usually updated per mix block, which on windows/mac/linux defaults to 1024 samples, so i’d expect that’s what you’re seeing.

System::setDSPBufferSize lets you change the block size, but making it too big could lead to audible consequences.

alternatively check the /lowlevel_api/examples/dsp_custom, you could process the buffer and do the RMS yourself if you wanted.

1 Like

OK, thanks.