Browse Source

VST host build fix. Removed a couple of MSVC warnings.

tags/2021-05-28
jules 14 years ago
parent
commit
932ee2ebf6
2 changed files with 5 additions and 6 deletions
  1. +2
    -2
      modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp
  2. +3
    -4
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 2
- 2
modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp View File

@@ -178,7 +178,7 @@ public:
if (startSampleInFile != currentPosition)
{
currentPosition = startSampleInFile;
wmSyncReader->SetRange (((QWORD) startSampleInFile * 10000000) / sampleRate, 0);
wmSyncReader->SetRange (((QWORD) startSampleInFile * 10000000) / (int) sampleRate, 0);
bufferStart = bufferEnd = 0;
}
@@ -297,7 +297,7 @@ private:
sampleRate = inputFormat->nSamplesPerSec;
numChannels = inputFormat->nChannels;
bitsPerSample = inputFormat->wBitsPerSample;
lengthInSamples = (lengthInNanoseconds * sampleRate) / 10000000;
lengthInSamples = (lengthInNanoseconds * (int) sampleRate) / 10000000;
}
}
}


+ 3
- 4
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -25,8 +25,6 @@
#if JUCE_PLUGINHOST_VST
#include "../../juce_audio_plugin_client/utility/juce_IncludeSystemHeaders.h"
//==============================================================================
#if ! (JUCE_MAC && JUCE_64BIT)
@@ -62,6 +60,7 @@ BEGIN_JUCE_NAMESPACE
#if JUCE_MSVC
#pragma warning (pop)
#pragma warning (disable: 4355) // ("this" used in initialiser list warning)
#endif
//==============================================================================
@@ -1109,9 +1108,9 @@ static Array <VSTPluginWindow*> activeVSTWindows;
//==============================================================================
class VSTPluginWindow : public AudioProcessorEditor,
#if ! JUCE_MAC
#if ! JUCE_MAC
public ComponentMovementWatcher,
#endif
#endif
public Timer
{
public:


Loading…
Cancel
Save