0
0

Hi,
Evaluating fmod for our app, I just wanted to ask if it can be used (and how) to process sounds and exports result in sound file (like a post-production process to pre-compute some audio parts). I guess we can accomplished it using NO_SOUND or WAF_WRITER drivers, but I don’t really understood how it works. Is there an easy way to do :
– Setup process (loading sources files, configuring effects, etc.);
– Run process
– get mixed result and exports it to file

Thanks in advance,
Seb

  • You must to post comments
0
0

You would just load and play sounds as normal. If you use FMOD_OUTPUTTYPE_WAVEWRITER_NRT you then use System::update to drive the mixer in a non-realtime fashion.
All it does is dump an fmodoutput.wav in your executable directory, or you can rename it by passing a filename to extradriverdata parameter of System::init if you want.

  • You must to post comments
0
0

Hi Brett,

Thanks for your quick reply, in fact it works well (as well as mixing several sounds, effects and so on).

I now have to control sync during playback (such as starting fades or effects at specific time, etc.). All works well if I do the sync using system time and RT playback , but it’s not really wished to play it in real time while I just want to render my ‘timeline’. So using channels::getPosition() combined to loop count and loop positions (yes, I’ve tried using a looping sample :)), I succeeded to manage it in NRT mode, but this control is done sound by sound, not for the whole timeline.

So first do I manage my problem in the best way ?
Is there a way to get some "position" on the global rendering process (through masterChannelGroup for example) ?

Again, thx,
Seb

  • You must to post comments
0
0

If you’re calling System::update to update the non realtime output, you’re making fmod process a buffer, so just add the dsp block size to a global integer every time you call it. This would be the number of output samples you are processing.

  • You must to post comments
0
0

Wahouh ! That’s great !
Thanks to you I can now have a sync control based on ms !
Thanks a lot, it sounds great,
Regards

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.