diff --git a/Builds/VisualStudio2012/Dexed.sln b/Builds/VisualStudio2012/Dexed.sln
index 6b5dd1b..5795149 100644
--- a/Builds/VisualStudio2012/Dexed.sln
+++ b/Builds/VisualStudio2012/Dexed.sln
@@ -1,17 +1,23 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2012
-Project("{BD26B4C3-163D-4785-A63F-D3E66858BFF3}") = "Dexed", "Dexed.vcxproj", "{1A9EF105-5BF5-9FB6-9634-A91A6D840866}"
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows Desktop
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dexed", "Dexed.vcxproj", "{1A9EF105-5BF5-9FB6-9634-A91A6D840866}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
+ Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
+ Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Debug|Win32.ActiveCfg = Debug|Win32
{1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Debug|Win32.Build.0 = Debug|Win32
+ {1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Debug|x64.ActiveCfg = Debug|x64
+ {1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Debug|x64.Build.0 = Debug|x64
{1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Release|Win32.ActiveCfg = Release|Win32
{1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Release|Win32.Build.0 = Release|Win32
+ {1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Release|x64.ActiveCfg = Release|x64
+ {1A9EF105-5BF5-9FB6-9634-A91A6D840866}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/Builds/VisualStudio2012/Dexed.v11.suo b/Builds/VisualStudio2012/Dexed.v11.suo
index 247bdaf..c48c1b6 100644
Binary files a/Builds/VisualStudio2012/Dexed.v11.suo and b/Builds/VisualStudio2012/Dexed.v11.suo differ
diff --git a/Builds/VisualStudio2012/Dexed.vcxproj b/Builds/VisualStudio2012/Dexed.vcxproj
index aae6451..16d4e18 100644
--- a/Builds/VisualStudio2012/Dexed.vcxproj
+++ b/Builds/VisualStudio2012/Dexed.vcxproj
@@ -1,37 +1,54 @@
-
-
+
Debug
Win32
+
+ Debug
+ x64
+
Release
Win32
+
+ Release
+ x64
+
{1A9EF105-5BF5-9FB6-9634-A91A6D840866}
v110
-
+
DynamicLibrary
false
v110
+
+ DynamicLibrary
+ false
+ v110
+
DynamicLibrary
false
true
v110
-
-
+
+ DynamicLibrary
+ false
+ true
+ v110
+
+
+
-
+
v110
@@ -40,10 +57,14 @@
<_ProjectFileVersion>10.0.30319.1
.\Debug\
Dexed
+ Dexed
true
+ true
.\Release\
Dexed
+ Dexed
true
+ true
v110
@@ -52,7 +73,7 @@
true
true
Win32
-
+
Disabled
@@ -61,7 +82,7 @@
WIN32;_WINDOWS;DEBUG;_DEBUG;JUCER_VS2012_78A501F=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;%(PreprocessorDefinitions)
MultiThreadedDebugDLL
true
-
+
$(IntDir)\
$(IntDir)\
$(IntDir)\
@@ -89,7 +110,53 @@
$(IntDir)\Dexed.bsc
- copy /Y "$(OutDir)\$(TargetFileName)" "$(OutDir)\$(TargetName).vst3"
+ copy /Y "$(OutDir)\$(TargetFileName)" "$(OutDir)\$(TargetName).vst3"
+
+
+
+
+ _DEBUG;%(PreprocessorDefinitions)
+ true
+ true
+
+
+
+
+ Disabled
+ ProgramDatabase
+ ..\..\JuceLibraryCode;..\..\JuceLibraryCode\modules;C:\work\vstsdk2.4;%(AdditionalIncludeDirectories)
+ WIN32;_WINDOWS;DEBUG;_DEBUG;JUCER_VS2012_78A501F=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;%(PreprocessorDefinitions)
+ MultiThreadedDebugDLL
+ true
+
+
+ $(IntDir)\
+ $(IntDir)\
+ $(IntDir)\
+ Level4
+ true
+ true
+
+
+ _DEBUG;%(PreprocessorDefinitions)
+
+
+ $(OutDir)\Dexed.dll
+ true
+ libcmt.lib; msvcrt.lib;;%(IgnoreSpecificDefaultLibraries)
+ true
+ $(IntDir)\Dexed.pdb
+ Windows
+ false
+ true
+ /FORCE:multiple %(AdditionalOptions)
+
+
+ true
+ $(IntDir)\Dexed.bsc
+
+
+ copy /Y "$(OutDir)\$(TargetFileName)" "$(OutDir)\$(TargetName).vst3"
@@ -98,15 +165,15 @@
true
true
Win32
-
+
MinSpace
..\..\JuceLibraryCode;..\..\JuceLibraryCode\modules;C:\work\vstsdk2.4;%(AdditionalIncludeDirectories)
WIN32;_WINDOWS;NDEBUG;JUCER_VS2012_78A501F=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;%(PreprocessorDefinitions)
- MultiThreadedDLL
+ MultiThreaded
true
-
+
$(IntDir)\
$(IntDir)\
$(IntDir)\
@@ -135,29 +202,75 @@
$(IntDir)\Dexed.bsc
- copy /Y "$(OutDir)\$(TargetFileName)" "$(OutDir)\$(TargetName).vst3"
+ copy /Y "$(OutDir)\$(TargetFileName)" "$(OutDir)\$(TargetName).vst3"
+
+
+
+
+ NDEBUG;%(PreprocessorDefinitions)
+ true
+ true
+
+
+
+
+ MinSpace
+ ..\..\JuceLibraryCode;..\..\JuceLibraryCode\modules;C:\work\vstsdk2.4;%(AdditionalIncludeDirectories)
+ WIN32;_WINDOWS;NDEBUG;JUCER_VS2012_78A501F=1;JUCE_APP_VERSION=1.0.0;JUCE_APP_VERSION_HEX=0x10000;%(PreprocessorDefinitions)
+ MultiThreaded
+ true
+
+
+ $(IntDir)\
+ $(IntDir)\
+ $(IntDir)\
+ Level4
+ true
+ true
+
+
+ NDEBUG;%(PreprocessorDefinitions)
+
+
+ $(OutDir)\Dexed.dll
+ true
+ %(IgnoreSpecificDefaultLibraries)
+ false
+ $(IntDir)\Dexed.pdb
+ Windows
+ true
+ true
+ true
+ /FORCE:multiple %(AdditionalOptions)
+
+
+ true
+ $(IntDir)\Dexed.bsc
+
+
+ copy /Y "$(OutDir)\$(TargetFileName)" "$(OutDir)\$(TargetName).vst3"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
true
@@ -1103,20 +1216,20 @@
true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
StdCall
@@ -1132,443 +1245,443 @@
StdCall
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
+
+
+
\ No newline at end of file
diff --git a/Builds/VisualStudio2012/Dexed.vcxproj.filters b/Builds/VisualStudio2012/Dexed.vcxproj.filters
index 590f1fd..597c439 100644
--- a/Builds/VisualStudio2012/Dexed.vcxproj.filters
+++ b/Builds/VisualStudio2012/Dexed.vcxproj.filters
@@ -1,5 +1,4 @@
-
-
+
@@ -382,9 +381,6 @@
Juce Modules\juce_audio_basics\synthesisers
-
- Juce Modules\juce_audio_plugin_client\AU
-
Juce Modules\juce_audio_plugin_client\RTAS
@@ -400,27 +396,15 @@
Juce Modules\juce_audio_plugin_client\RTAS
-
- Juce Modules\juce_audio_plugin_client\RTAS
-
Juce Modules\juce_audio_plugin_client\VST
-
- Juce Modules\juce_audio_plugin_client\VST
-
Juce Modules\juce_audio_plugin_client\VST3
-
- Juce Modules\juce_audio_plugin_client\VST3
-
Juce Modules\juce_audio_plugin_client\AAX
-
- Juce Modules\juce_audio_plugin_client\AAX
-
Juce Modules\juce_audio_plugin_client\utility
@@ -445,9 +429,6 @@
Juce Modules\juce_audio_processors\format
-
- Juce Modules\juce_audio_processors\format_types
-
Juce Modules\juce_audio_processors\format_types
@@ -688,21 +669,6 @@
Juce Modules\juce_core\native
-
- Juce Modules\juce_core\native
-
-
- Juce Modules\juce_core\native
-
-
- Juce Modules\juce_core\native
-
-
- Juce Modules\juce_core\native
-
-
- Juce Modules\juce_core\native
-
Juce Modules\juce_core\native
@@ -775,15 +741,9 @@
Juce Modules\juce_events\native
-
- Juce Modules\juce_events\native
-
Juce Modules\juce_events\native
-
- Juce Modules\juce_events\native
-
Juce Modules\juce_events\native
@@ -883,12 +843,6 @@
Juce Modules\juce_graphics\native
-
- Juce Modules\juce_graphics\native
-
-
- Juce Modules\juce_graphics\native
-
Juce Modules\juce_graphics\native
@@ -1237,12 +1191,6 @@
Juce Modules\juce_gui_basics\native
-
- Juce Modules\juce_gui_basics\native
-
-
- Juce Modules\juce_gui_basics\native
-
Juce Modules\juce_gui_basics\native
@@ -1252,21 +1200,6 @@
Juce Modules\juce_gui_basics\native
-
- Juce Modules\juce_gui_basics\native
-
-
- Juce Modules\juce_gui_basics\native
-
-
- Juce Modules\juce_gui_basics\native
-
-
- Juce Modules\juce_gui_basics\native
-
-
- Juce Modules\juce_gui_basics\native
-
Juce Modules\juce_gui_basics\native
@@ -1321,27 +1254,15 @@
Juce Modules\juce_gui_extra\native
-
- Juce Modules\juce_gui_extra\native
-
Juce Modules\juce_gui_extra\native
Juce Modules\juce_gui_extra\native
-
- Juce Modules\juce_gui_extra\native
-
-
- Juce Modules\juce_gui_extra\native
-
Juce Modules\juce_gui_extra\native
-
- Juce Modules\juce_gui_extra\native
-
Juce Modules\juce_gui_extra\native
@@ -1414,6 +1335,24 @@
Juce Library Code
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2705,4 +2644,4 @@
Juce Library Code
-
+
\ No newline at end of file
diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp
index d6ce275..60a0751 100644
--- a/Source/PluginProcessor.cpp
+++ b/Source/PluginProcessor.cpp
@@ -189,6 +189,7 @@ void DexedAudioProcessor::processBlock(AudioSampleBuffer& buffer, MidiBuffer& mi
}
}
}
+ extra_buf_size = i - numSamples;
}
while(getNextEvent(&it, numSamples)) {