Browse Source

VST2: Fixed a VS2013 compiler error

tags/2021-05-28
hogliux 8 years ago
parent
commit
44f17f5061
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_processors/format_types/juce_VSTCommon.h

+ 1
- 1
modules/juce_audio_processors/format_types/juce_VSTCommon.h View File

@@ -180,7 +180,7 @@ struct SpeakerMappings : private AudioChannelSet // (inheritance only to give e
VstSpeakerConfiguration* allocate (int numChannels)
{
auto arrangementSize = (sizeof (VstSpeakerConfiguration) - sizeof(VstSpeakerConfiguration::speakers))
auto arrangementSize = (sizeof (VstSpeakerConfiguration) - (sizeof(VstIndividualSpeakerInfo) * 8))
+ (sizeof (VstIndividualSpeakerInfo) * static_cast<size_t> (numChannels));
storage.malloc (1, arrangementSize);


Loading…
Cancel
Save