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->playSound(FMOD_CHANNEL_FREE, fmod_sound, false, fmod_channel);
system->playDSP(FMOD_CHANNEL_FREE, dsp_tone, true, dsp_channel);
Thanks for any help you can give, Daniel
- JimDaniel asked 8 years ago
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.
Please login first to submit.