1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
jules 2011-12-21 11:47:54 +00:00
parent 5e795134fc
commit 932ee2ebf6
2 changed files with 5 additions and 6 deletions

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

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: