Browse Source

Fixed a VS compile problem.

tags/2021-05-28
jules 12 years ago
parent
commit
d5cd1663db
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

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

@@ -766,7 +766,7 @@ public:
// Adobe Audition CS6 hack to avoid trying to use corrupted streams: // Adobe Audition CS6 hack to avoid trying to use corrupted streams:
if (getHostType().isAdobeAudition()) if (getHostType().isAdobeAudition())
if (s->getSize() >= 5 && memcmp (s->getData(), "VC2!E", 5) == 0) if (s->getSize() >= 5 && memcmp (s->getData(), "VC2!E", 5) == 0)
return kResultFalse;
return false;
pluginInstance->setStateInformation (s->getData(), (int) s->getSize()); pluginInstance->setStateInformation (s->getData(), (int) s->getSize());
return true; return true;
@@ -785,9 +785,9 @@ public:
for (;;) for (;;)
{ {
int32 bytesRead = 0;
Steinberg::int32 bytesRead = 0;
if (state->read (buffer, (int32) bytesPerBlock, &bytesRead) == kResultTrue && bytesRead > 0)
if (state->read (buffer, (Steinberg::int32) bytesPerBlock, &bytesRead) == kResultTrue && bytesRead > 0)
{ {
allData.write (buffer, bytesRead); allData.write (buffer, bytesRead);
continue; continue;


Loading…
Cancel
Save