Answered
0
0

Hi,

I’m writing to a wav file with FMOD_OUTPUTTYPE_WAVWRITER_NRT but instead of writing it into a single wav file, I want to piece it up into many different chunks.

The first way I tried (and rather stupidly) is to release old system and re-initializing a new system every-time I wanted a chunk of wav file but that is too expensive.

So my question is this:
1. Is there any way to ask FMOD to start recording to a new file within the same system?
2. If that is not possible, then instead of recording to wav files, is there any way I can have FMOD write the PCM samples to memory so that I can flush out the memory myself into a wav (or raw even) file myself? I am layering multiple sound files and adding varying, but high amount of filters to it throughout the track so the example presented here (http://www.fmod.org/questions/question/record-and-output-to-wav-file/) seems like I wont be able to do much of that (If going to have to lock every sound within my program and get the raw data and composite them myself, I wouldn’t have to use FMOD at all!)

TLDR: Need to split output wav file to multiple tracks within the same program. I can make do however with access to pcm samples from FMOD instead of having it write to wav file

I’m sorry if this question is too primitive. I am only just getting my feet wet with FMOD and I am a little bit lost.

Thanks

  • You must to post comments
Best Answer
0
0

FMOD can only output to one file when using FMOD_OUTPUTTYPE_WAVWRITER.

Another way of outputting audio to a file is to use a custom DSP plugin that you can use to write out the sound data after all the processing has been done.

We have some example plugins in the LowLevel API examples that come with the API download, as well as some more information on the DSP API in our website docs:
https://fmod.com/resources/documentation-api?page=content/generated/overview/plugin_api_dsp.html#/

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.