From 6b159c8f1d038596194901b59e456e3de1ad0562 Mon Sep 17 00:00:00 2001 From: bsutherland Date: Sun, 14 Feb 2016 09:44:53 +0900 Subject: [PATCH] Upgrade all Juce components to v4.x, add Visual Studio 2015 build using latest SDK from Steinberg (but still building as VST 2). --- JuceOPLVSTi.jucer | 33 +++++++++++++++++++++++++++++++-- Source/dbopl.cpp | 4 +--- readme.md | 9 +++++---- 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/JuceOPLVSTi.jucer b/JuceOPLVSTi.jucer index 3ae2b64..a532352 100644 --- a/JuceOPLVSTi.jucer +++ b/JuceOPLVSTi.jucer @@ -1,6 +1,6 @@ - + pluginIsMidiEffectPlugin="0" companyWebsite="https://bsutherland.github.io/JuceOPLVSTi/"> + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/dbopl.cpp b/Source/dbopl.cpp index 2ac86c6..7deaead 100644 --- a/Source/dbopl.cpp +++ b/Source/dbopl.cpp @@ -1212,9 +1212,7 @@ void Chip::GenerateBlock3( Bitu total, Bit32s* output ) { } void Chip::Setup( Bit32u rate ) { - double original = OPLRATE; -// double original = rate; - double scale = original / (double)rate; + double scale = OPLRATE / (double)rate; //Noise counter is run at the same precision as general waves noiseAdd = (Bit32u)( 0.5 + scale * ( 1 << LFO_SH ) ); diff --git a/readme.md b/readme.md index 0d78d20..29ac97c 100644 --- a/readme.md +++ b/readme.md @@ -81,11 +81,12 @@ So far I've only built under Windows. Thanks to the hard work of Jeff Russ, ther ### Windows Build Instructions ### 1. Download Juce (http://www.juce.com/) -2. Download the VST SDK (http://www.steinberg.net/en/company/developer.html) +2. Download the VST SDK (http://www.steinberg.net/en/company/developers.html) 3. Run "The Projucer" executable included in Juce. 4. Open JuceOPLVSTi.jucer - Make any changes to the GUI layout and components here (PluginEditor.cpp). - Save PluginEditor.cpp if modified -5. Hit "Save Project and Open in Visual Studio". I use Visual Studio Express 2013. -6. (For Windows XP compatibility) In the project's properties, set platform toolset to Windows XP (Configuration Properties > General). -7. Build! +5. Hit "Save Project and Open in Visual Studio". I use Visual Studio Express 2015. +6. Select the build: "Release - 64-bit" and set platform to x64. +7. (Optional, for Windows XP compatibility) In the project's properties, set platform toolset to Windows XP (Configuration Properties > General). +8. Build!