0
0

Hi,

I’m trying to implement voice chat using Steam and Fmod, it works, except there is a significant delay (1-2 seconds) between one person talking and the other person hearing it.

I want to try increasing the buffer size used in the PCMReadCallback, but its doesn’t matter what I set FMOD_CREATESOUNDEXINFO::decodebuffersize to, the max buffer is always 16k.

How can I increase the buffer size?

Also, when reading a 16k buffer it will sometimes be followed by a low size (5-7k) how is the buffer reading working?

Thanks,
Drew

  • You must to post comments
0
0

it doesnt ‘do nothing’ – the buffer size is what you set it. This doesnt mean the callback you get is going to be a certain size. Rather than alloc redundant memory, it uses a 16k block and calls the callback multiple times if it needs more data.

If you were writing a voice chat system you’d be using playDSP and a dsp callback for lowest latency anyway, not a large block stream buffer.

  • You must to post comments
0
0

Hi brett,

I’ve switched our voice chat system to use DSPs and it works much better now.

Thanks,
Drew

  • You must to post comments
0
0

Hi Drew,

could you please post example code?

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.