Non realtime wav writer

hello,
for ios when i use this code, is always error. the code is:

system->setOutput(FMOD_OUTPUTTYPE_WAVWRITER_NRT);
result = system->init(32, FMOD_INIT_STREAM_FROM_UPDATE, &outputPath);

Could you tell me how to use FMOD_OUTPUTTYPE_WAVWRITER_NRT for ios?
thanks.

You can use WAVWRITER_NRT with iOS, as long as the outputPath is valid (it also needs to include the file name).

What is the error you are getting?

1 Like

thanks your answer。
My Englisg is not good。
These days I find the problem。
the problem code is:
result = system->init(32, FMOD_INIT_STREAM_FROM_UPDATE, &outputPath);

Modify the outputPath is :

char outputPath[200] = “outputpath”;
result = system->init(32, FMOD_INIT_STREAM_FROM_UPDATE, outputPath);

the outputPath is pointer,The right is ‘char path’ not pointer path。now it can output wav file。

The output path needs to include the file name and extension.
eg. “outputpath.wav”

yes it had set

If you are still getting an error, can you tell me the error?