0
0

I have audio loaded into memory, but only really small clips, something on the order of 8-64 ms clips. I want to use subsounds to get them to stitch. The problem I’m faced with is when I create the subsounds, they need to be FMOD_OPENRAW | FMOD_OPENMEMORY, but when I create the parent sound, if I use those settings I get an invalid arg (presumably because the first argument is null). But, if I use the correct flag (FMOD_OPENUSER, presumably…), then I get an error when I try to set the subsentence that says "The subsound’s mode bits do not match with the parent sound’s mode bits". What am I doing wrong?

BTW, the docs on these flags is dreadful. Nothing but guess and check trying to figure out what magical combination works.

Thanks!

  • You must to post comments
0
0

first create a parent sound, using FMOD_OPENUSER, and set the numsubsounds variable to the maximum subsounds that you want. This is what the ‘realtimestitching’ example does. In fact the whole example is almost what you want, except the parent wont loop or update the subsounds in realtime presumably (so its actually a simpler version of that example).

You the create a bunch of sounds that are created with FMOD_OPENRAW and then call Sound::setSubSound to put them into the parent.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.