System::setOutput after Studio::System::initialize

Hi there,

I’ve trying to change the output from FMOD_OUTPUTTYPE_NOSOUND_NRT to FMOD_OUTPUTTYPE_WAVWRITER_NRT after system init.

According to docs it should be fine:
http://www.fmod.org/documentation/#content/generated/FMOD_System_SetOutput.html

This function can be called after FMOD is already activated. You can
use it to change the output mode at runtime.

But if I trying that, get to runtime:

FMOD error 27 - Cannot call this command after System::init.

Any ideas?

regarding,
Grigory

Hi which version of studio are you running?

Version 1.07.03, OS: Ubuntu

I’ve run across the same problem. Any solutions?

It seems that output CAN be changed multiple times after system has been initialized, but only if output was set at least once before system initialization. This isn’t obvious and should be stated in docs.

Runtime switching of the output mode is currently only supported on Windows. It looks like this fact is missing from the docs, I’ll make sure that is updated to avoid confusion.

2 Likes