- Home /
Set number of DSP buffers in Unity 5
I am currently working on a project that needs to detect input within very tight windows of time based on parts of a playing song. Previously we were able to change both the buffer size as well as the number of buffers using AudioSettings which allowed for very accurate DSP timing but also have good audio quality.
With Unity 5, I can change the buffer size in code but not the number of buffers which results in a large amount of popping and distortion. Is there any way to change the number of buffers that I'm not seeing using the new AudioSettings.Restore function or has this functionality been removed. In the case of the latter, will it ever come back?
UPDATE:
Making a standalone build (iOS) the audio quality is higher which makes me thing this may be an editor issue. Setting the dsp buffer to s low value for latency creates some very strange audio effect which makes me thing the ring buffer on the back end is being filled strangely; there is an echo of the audio playing on top of the distorted audio.