# Help with setDSPBufferSize

**URL:** <https://qa.fmod.com/t/help-with-setdspbuffersize/16574>\
**Category:** Unity\
**Tags:** csharp\
**Created:** [December 19, 2020, 11:06pm UTC](https://qa.fmod.com/t/help-with-setdspbuffersize/16574 "2020-12-19T23:06:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skAeglund](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skaeglund/32/1786_2.png) [@skAeglund](https://qa.fmod.com/u/skAeglund)\
**Post date:** [December 19, 2020, 11:06pm UTC](https://qa.fmod.com/t/help-with-setdspbuffersize/16574/1 "2020-12-19T23:06:11Z")

</div>

Hey, I’ve been trying to lower latency (in unity) with setDSPBufferSize but I can’t figure out how. I’m a beginner at coding so I’ll need direct instructions (insert “code” at “line xxx” in “that” script) (c#).

I know I should call System::setDSPBufferSize before System::init, but that doesn’t tell me much… even after looking at the API documents.

---

<div class="post-metadata">

**Author:** ![skAeglund](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skaeglund/32/1786_2.png) [@skAeglund](https://qa.fmod.com/u/skAeglund)\
**Post date:** [December 23, 2020, 12:38am UTC](https://qa.fmod.com/t/help-with-setdspbuffersize/16574/2 "2020-12-23T00:38:41Z")

</div>

Update: I managed to find a spot in RuntimeManager.cs where I could change the buffersize (see image below). This feels wrong, but seems to be working at least.

 ![setDSPBufferSize](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/786973154cdce564f88c4296f44935abe4715a1c.png)

I would appreciate any tips on how to get low latency with fmod/unity^^

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [January 4, 2021, 10:14pm UTC](https://qa.fmod.com/t/help-with-setdspbuffersize/16574/3 "2021-01-04T22:14:42Z")

</div>

If you use 2.01.05 or newer, we’ve added DSP buffer size to the FMOD settings inspector so you can change it without writing code. It looks like you might already have that version based on the code snippet.
