mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
Fix some Xcode warnings in the VST and VST3 wrappers.
This commit is contained in:
parent
cb6b4b7170
commit
d873d2426a
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue