0
0

Can someone explain to me the use of system.update and how to use it to render the sound data faster than realtime? I’m getting spectrum data from the audio, but I don’t want to make the user sit there for the length of the audio.

I believe I read in the forum that using system.update in a loop, in combination with system.setOutput(FMOD.OUTPUTTYPE.NOSOUND_NRT) and FMOD.INITFLAG.STREAM_FROM_UPDATE, can get it to render faster than realtime, but I can’t seem to find that again.

Am I wrong in this? If I’m not, I can’t get it to render any faster than realtime. Should I not be calling system.playsound? (But then how does it know to start?)

Ugh. So many questions. Just really unclear on the use of system.update.

  • You must to post comments
0
0

I’m feeling like enough of an idiot just for posting this. Can no one lend me a hand?

  • You must to post comments
0
0

I think you have it right. Set the system with NOSOUND_NRT and STREAM_FROM_UPDATE, then you play your sound and do something like:
[code:1i5h4tmd]bool bIsPlaying = true;
while(bIsPlaying)
{
// Your voodoo here...
pChannel->isPlaying(&bIsPlaying);
pSystem->update();
}
[/code:1i5h4tmd]

I think that’ll work. Good luck!

  • G
  • You must to post comments
0
0

Thanks for taking the time, Adiss. At least I’m not the complete nincompoop I was starting to fear I was.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.