Browse Source

Fix some Xcode warnings in the VST and VST3 wrappers.

tags/2021-05-28
tpoole 9 years ago
parent
commit
d873d2426a
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp
  2. +1
    -1
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 3
- 3
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -546,7 +546,7 @@ public:
{
isProcessing = true;
const size_t nInAndOutChannels = vstEffect.numInputChannels + vstEffect.numOutputChannels;
const size_t nInAndOutChannels = static_cast<size_t> (vstEffect.numInputChannels + vstEffect.numOutputChannels);
floatTempBuffers .channels.calloc (nInAndOutChannels);
doubleTempBuffers.channels.calloc (nInAndOutChannels);
@@ -1604,8 +1604,8 @@ private:
// The last member of a full VstSpeakerConfiguration struct is an array of 8
// VstIndividualSpeakerInfo. Here we only allocate space for channels we will
// actually use.
const int allocationSizeToSubtract = (8 - nChannels) * sizeof (VstIndividualSpeakerInfo);
const int allocationSize = sizeof (VstSpeakerConfiguration) - allocationSizeToSubtract;
const size_t allocationSizeToSubtract = static_cast<size_t> (8 - nChannels) * sizeof (VstIndividualSpeakerInfo);
const size_t allocationSize = sizeof (VstSpeakerConfiguration) - allocationSizeToSubtract;
char* newAllocation = new char[allocationSize];
memset (newAllocation, 0, allocationSize);


+ 1
- 1
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -2101,7 +2101,7 @@ private:
// Consider yourself very unlucky if you hit this assertion. The hash code of your
// parameter ids are not unique.
jassert (! vstParamIDs.contains (static_cast<int32> (paramID)));
jassert (! vstParamIDs.contains (static_cast<uint32> (paramID)));
vstParamIDs.add (paramID);
paramMap.set (static_cast<int32> (paramID), i);


Loading…
Cancel
Save