0
0

Hi,

It seems that FMOD doubles the buffersize that I set.

When initializing FMOD as follows with a buffersize of 50 ms (which is the default according to the docs) and samplerate of 16000 Hz:
FSOUND_SetBufferSize ( 50 );
FSOUND_Init ( 16000, 32, 0 );

The buffersize seems to be set to 96 ms instead instead of the the expected value near 50:
FSOUND_DSP_GetBufferLengthTotal () == 1536 samples or 96 ms

Could someone please explain this behaviour?

Thanks,

Tom

  • You must to post comments
0
0

It’s a double buffer so FMOD creates 2 x 50ms buffers.

  • You must to post comments
0
0

But does this mean that the latency will be 100 ms? Or is it 50 ms?

And I don’t understand why FMOD needs to double the buffersize. A buffer of 50 ms already holds 3 DSP unit mixing blocks. Aren’t those blocks used like a double buffer, i.e. play a block while filling the other two?

  • You must to post comments
0
0

Someone?

  • You must to post comments
0
0

The latency will be on average 50-100 it is not guaranteed because you could be playing the sound half way through a mix.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.