FMOD: Non real time grabbing.

Started by
-1 comments, last by eq 18 years ago
Hi all, I'm making a tool that renders to .avi files, it generates around 1 fps. The .avi I produce is at 60 fps. Now I've added sound via fmod and when I render without saving to the .avi, everything works fine (running in real time around 5 fps). How can I setup fmod so that it mixes at command (non real time) to a buffer that I can grab, i.e something like:

fmod->Mix(1.0f / 60.0f);
int sampleCount;
unsigned short* samples = fmod->getSampleBuffer(&sampleCount);
writeSamplesToAvi(sample, sampleCount);


Anyone done something similar and can point me in the right direction?

This topic is closed to new replies.

Advertisement