From 932ee2ebf6c77f2ce6b94620a19b34bd0433e558 Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 21 Dec 2011 11:47:54 +0000 Subject: [PATCH] VST host build fix. Removed a couple of MSVC warnings. --- .../codecs/juce_WindowsMediaAudioFormat.cpp | 4 ++-- .../format_types/juce_VSTPluginFormat.cpp | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp b/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp index 904e85b4fd..500025e806 100644 --- a/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp +++ b/modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp @@ -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; } } } diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 91ec287408..3ed45b42d3 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -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 activeVSTWindows; //============================================================================== class VSTPluginWindow : public AudioProcessorEditor, - #if ! JUCE_MAC + #if ! JUCE_MAC public ComponentMovementWatcher, - #endif + #endif public Timer { public: