Warning when parameter setting in C++

While using the C++ API I’m getting the following message:

WARNING:
Csound output: system constants can only be set once

I’m setting parameters and options before I call Start() and CompileCSD() and right after instantiating Csound using new Csound(). This is how I’m doing it (FString is Unreal Engine’s string class and TCHAR_TO_ANSI is a UE macro):

csound = new Csound();
csound->SetMessageCallback(CsoundMessageCallback);
csound->SetHostImplementedAudioIO(1, 0);
CSOUND_PARAMS params;
csound->SetOption(TCHAR_TO_ANSI(*FString(“-n”)));
csound->GetParams(&params);
params.e0dbfs_override = 1;
params.sample_rate_override = SampleRate;
params.nchnls_override = 2;
csound->SetParams(&params);

I’m getting that warning repeated 3 times so I wonder if it is related to each time I change something in params.

ah! Never mind… I found why. The CSD was also setting the same global variables:

ksmps = 32
nchnls = 2
0dbfs = 1