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.
- kc asked 10 years ago
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;
// Your voodoo here...
I think that’ll work. Good luck!
- Adiss answered 9 years ago
Please login first to submit.