Hi, I’ve been scratching my head figuring out how I can do this, if its even possible. I’m pretty sure it is.

I have looked at the record and recordtodisk in the examples, but frankly I can make little sense of it (blaming myself of course, I’m still new at fmod) I’ve also scoured the forums here.

Can someone step me through how I would approach outputting fmod streams with dsp effects to a .wav file? If its possible?

I’m currently creating my sounds like this:


//for sound files

system->init(128, FMOD_INIT_NORMAL, 0);

system->createStream("c:/test.mp3", FMOD_SOFTWARE | FMOD_LOOP_NORMAL | FMOD_2D, 0, &fmod_sound);

system->createDSPByType(FMOD_DSP_TYPE_REVERB, &reverb);

system->playSound(FMOD_CHANNEL_FREE, fmod_sound, false, fmod_channel);

//for tones

system->createDSPByType(FMOD_DSP_TYPE_OSCILLATOR, dsp_tone);

dsp_tone->setParameter(FMOD_DSP_OSCILLATOR_RATE, 220.0f);

system->playDSP(FMOD_CHANNEL_FREE, dsp_tone, true, dsp_channel);

dsp_tone->setParameter(FMOD_DSP_OSCILLATOR_TYPE, 0);



Thanks for any help you can give, Daniel

  • You must to post comments

you could try system->setOutput(FMOD_OUTPUTTYPE_WAVWRITER) which would just send all output to a wave file.

The FMOD_OUTPUTTYPE_WAVWRITER_NRT version also lets you do this, but ‘faster than realtime’ so you dont have to wait around for the sounds to play, it will just blast through as fast as it can writing the data out.
You have to call System::update enough times though to make it work.

  • You must to post comments

That works beautifully, thanks a lot! So simple.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.