1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

VST2: Fixed a VS2013 compiler error

This commit is contained in:
hogliux 2017-06-19 18:00:09 +01:00
parent 940ff3ee6e
commit 44f17f5061

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);