ASIO: how do I programmatically set the buffer size FMOD should use, to match that of ASIO driver?

Hi Ilias,
It looks like I was misinformed about the fact that studio forces the buffersize to use whatever the driver preferred. FMOD Ex certainly did that.

FMOD Studio just lets you set the buffer size to whatever you want, but it has to be within ASIO’s

  1. min buffer size (ie here it says ‘64’)
  2. max buffer size (ie here it says ‘2048’)
  3. a multiple of the granularity the driver reports (ie here it says ‘8’)

So the default of 1024 works fine here on my ASIO device.

I’m going to guess there are a variety of drivers that have all sorts of min/max/granularity settings, and the problem is we don’t expose it currently. We’ll address this in a future update.

I’ve made a workaround for you - it is a modified ‘simple_event’ example. (the top half).

I’ll paste it below instead of in a comment, for formatting