Use Steinberg's fixed size types, to fix MSVC build

This commit is contained in:
Jean Pierre Cimalando 2020-03-06 17:51:06 +01:00 committed by Paul Fd
parent 95d6c581f7
commit 14d76e6282
2 changed files with 7 additions and 7 deletions

View file

@ -100,12 +100,12 @@ tresult PLUGIN_API SfizzVstControllerNoUi::getParamValueByString(Vst::ParamID ta
switch (tag) {
case kPidOversampling:
{
int factor;
int32 factor;
if (!Steinberg::String::scanInt32(string, factor, false) || factor < 1)
factor = 1;
int log2Factor = 0;
for (int f = factor; f > 1; f /= 2)
int32 log2Factor = 0;
for (int32 f = factor; f > 1; f /= 2)
++log2Factor;
valueNormalized = kParamOversamplingRange.normalize(log2Factor);

View file

@ -33,9 +33,9 @@ class SfizzVstState {
public:
std::string sfzFile;
float volume = 0;
int numVoices = 64;
int oversamplingLog2 = 0;
int preloadSize = 8192;
int32 numVoices = 64;
int32 oversamplingLog2 = 0;
int32 preloadSize = 8192;
static constexpr uint64 currentStateVersion = 0;
@ -45,7 +45,7 @@ public:
class SfizzUiState {
public:
unsigned activePanel = 0;
uint32 activePanel = 0;
static constexpr uint64 currentStateVersion = 0;