0
0

Hello,

I’ve been searching inside the forum for some answers since it seems a rather ‘easy” problem but found nothing 😡

I’m currently writing a fmodex lib to play sound linked to a generic sound/stream lib.
No problem for creating and playing my own stream data with fmod using FMOD_OPENUSER and feeding with my FMOD_CREATESOUNDEXINFO.

I need to preload some of my stream data before calling createsound, no problem with that either….But exactly how many ?
By testing i found that i need at least 7 time the size of my ‘chunk’ of streamed data.

in real condition : i stream pcm16 44100 2channels by 16384 bytes chunk
i create the stream with fmod decodebuffersize = 16384 and a pcmreadcallback

so i need to preload 16384*7 = 114688 before calling createstream.
If not, createstream call pcmreadcallback functions 7 times before resuming my current main thread.

thanks for reading

  • You must to post comments
0
0

nevermind, i just confused myself with this decodebuffersize and my own decode buffer size ~~
I managed to reduce the ammount of data loaded before calling play significatively, and working with relative minimal buffer between my sound lib, and fmod api.

Sorry

  • You must to post comments
0
0

Welcome to the FMOD Forums. No apology necessary, I’m glad to hear you solved your problem. The easiest kind of support 😀

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.