From dadf05a851aedca47cafcd55a1d7ab47956a8a64 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sat, 21 Feb 2015 23:04:53 +0000 Subject: [PATCH] - fixed notification stuff - getWritePointer() - added custom build step; copy dll to VST-Plugins folder git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@237 b431acfa-c32f-4a4a-93f1-934dc6c82436 --- Makefile | 2 +- Source/ButtonLED.cpp | 2 +- Source/JaySynth.cpp | 4 ++-- Source/synth/synth_debug.c | 8 +++++--- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 05de621..d09258f 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,7 @@ CCADMIN=CCadmin # build build: .build-post + cp ${CND_ARTIFACT_PATH_${CONF}} "/c/Program Files (x86)/Steinberg/VSTPlugins/JaySynth.dll" .build-pre: # Add your pre 'build' code here... @@ -89,7 +90,6 @@ all: .all-post .all-post: .all-impl # Add your post 'all' code here... - # build tests build-tests: .build-tests-post diff --git a/Source/ButtonLED.cpp b/Source/ButtonLED.cpp index b167102..66999b7 100644 --- a/Source/ButtonLED.cpp +++ b/Source/ButtonLED.cpp @@ -174,7 +174,7 @@ void ButtonLED::clicked(const ModifierKeys &modifiers) return; if (clickingTogglesState) - setToggleState(!state, false); + setToggleState(!state, juce::NotificationType::dontSendNotification); } diff --git a/Source/JaySynth.cpp b/Source/JaySynth.cpp index f471701..3bc8942 100644 --- a/Source/JaySynth.cpp +++ b/Source/JaySynth.cpp @@ -903,8 +903,8 @@ void JaySynth::renderNextBlock (AudioSampleBuffer& outputBuffer, { // Process global voice data - buf1 = outputBuffer.getSampleData (0, startSample); - buf2 = outputBuffer.getSampleData (1, startSample); + buf1 = outputBuffer.getWritePointer (0, startSample); + buf2 = outputBuffer.getWritePointer (1, startSample); VoiceProcessDataV_Common(&m_pVoices[0], buf1, buf2, numThisTime); // Start audio threads diff --git a/Source/synth/synth_debug.c b/Source/synth/synth_debug.c index 5942de9..dc0ce85 100644 --- a/Source/synth/synth_debug.c +++ b/Source/synth/synth_debug.c @@ -4,7 +4,7 @@ #include #include #include -#include +#include // -------------------------------------------------------------- @@ -13,10 +13,12 @@ // -------------------------------------------------------------- // Exported functions // -------------------------------------------------------------- -void SynthDebug(char *fmtstr, ...) + +void SynthDebug(const char *fmtstr, ...) { #ifndef SYNTH_DEBUG - + (void)fmtstr; + /* Empty body, so a good compiler will optimise calls to pmesg away */ #else