# numSamples in FMOD\_DSP\_METERING\_INFO. How to change it?

**URL:** <https://qa.fmod.com/t/numsamples-in-fmod-dsp-metering-info-how-to-change-it/13318>\
**Category:** FMOD Studio\
**Created:** [July 27, 2017, 9:06pm UTC](https://qa.fmod.com/t/numsamples-in-fmod-dsp-metering-info-how-to-change-it/13318 "2017-07-27T21:06:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sperryrand](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@sperryrand](https://qa.fmod.com/u/sperryrand)\
**Post date:** [July 27, 2017, 9:06pm UTC](https://qa.fmod.com/t/numsamples-in-fmod-dsp-metering-info-how-to-change-it/13318/1 "2017-07-27T21:06:19Z")

</div>

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

MM

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [July 28, 2017, 5:50am UTC](https://qa.fmod.com/t/numsamples-in-fmod-dsp-metering-info-how-to-change-it/13318/2 "2017-07-28T05:50:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sperryrand](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@sperryrand](https://qa.fmod.com/u/sperryrand)\
**Post date:** [July 28, 2017, 3:45pm UTC](https://qa.fmod.com/t/numsamples-in-fmod-dsp-metering-info-how-to-change-it/13318/3 "2017-07-28T15:45:18Z")

</div>

OK, thanks.
