diff --git a/src/detail/vst3/process.cpp b/src/detail/vst3/process.cpp index c0763ecb..e401d9b1 100644 --- a/src/detail/vst3/process.cpp +++ b/src/detail/vst3/process.cpp @@ -39,8 +39,8 @@ namespace Clap _silent_output = new float[numSamples]; } - auto numInputs = _audioinputs->size(); - auto numOutputs = _audiooutputs->size(); + auto numInputs = (uint32_t)_audioinputs->size(); + auto numOutputs = (uint32_t)_audiooutputs->size(); _processData.audio_inputs_count = numInputs; delete[] _input_ports; @@ -412,7 +412,7 @@ namespace Clap uint32_t ProcessAdapter::input_events_size(const struct clap_input_events* list) { auto self = static_cast(list->ctx); - return self->_events.size(); + return (uint32_t)self->_events.size(); // return self->_vstdata->inputEvents->getEventCount(); } diff --git a/src/detail/vst3/state.h b/src/detail/vst3/state.h index 7a5e4c3d..4bb18f3c 100644 --- a/src/detail/vst3/state.h +++ b/src/detail/vst3/state.h @@ -23,7 +23,7 @@ class CLAPVST3StreamAdapter { auto self = static_cast(stream->ctx); Steinberg::int32 bytesRead = 0; - if (kResultOk == self->vst_stream->read(buffer, size, &bytesRead)) + if (kResultOk == self->vst_stream->read(buffer, (int32)size, &bytesRead)) return bytesRead; return -1; } @@ -31,7 +31,7 @@ class CLAPVST3StreamAdapter { auto self = static_cast(stream->ctx); Steinberg::int32 bytesWritten = 0; - if (kResultOk == self->vst_stream->write(const_cast(buffer), size, &bytesWritten)) + if (kResultOk == self->vst_stream->write(const_cast(buffer), (int32)size, &bytesWritten)) return bytesWritten; return -1; }