Build with JUCE 7.0.6

This commit is contained in:
Nikolai Rodionov 2023-08-17 17:18:38 +02:00
parent 41e0f78edd
commit 3c4baf43da
No known key found for this signature in database
GPG Key ID: 906851F91B1DA3EF
11 changed files with 84 additions and 64 deletions

View File

@ -6,6 +6,7 @@ name: Release paulxstretch
trigger: trigger:
event: event:
- tag - tag
name: Build paulxstretch
trigger: trigger:
branch: branch:
@ -32,6 +33,20 @@ steps:
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -Wno-dev -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
- git submodule update --init --recursive --progress - git submodule update --init --recursive --progress
- git submodule update --init --recursive
- name: Build and push the docker image
image: plugins/docker
when:
branch:
- dev
settings:
registry: git.badhouseplants.net
username: allanger
password:
from_secret: GITEA_TOKEN
repo: git.badhouseplants.net/${DRONE_REPO}
dockerfile: Containerfile
tags: latest
- name: Build the Linux version - name: Build the Linux version
image: ubuntu image: ubuntu

1
.gitmodules vendored
View File

@ -1,6 +1,7 @@
[submodule "deps/juce"] [submodule "deps/juce"]
path = deps/juce path = deps/juce
url = https://github.com/juce-framework/JUCE.git url = https://github.com/juce-framework/JUCE.git
branch = 7.0.6
[submodule "deps/clap-juce-extensions"] [submodule "deps/clap-juce-extensions"]
path = deps/clap-juce-extensions path = deps/clap-juce-extensions
url = https://github.com/free-audio/clap-juce-extensions.git url = https://github.com/free-audio/clap-juce-extensions.git

View File

@ -1,5 +1,11 @@
## PaulXStretch Change History ## PaulXStretch Change History
**v1.7.1** (2023-09-18)
- Updated JUCE to 7.0.6, so the linux VST versions can be open in DAW
- Temporarily dropped support for CLAP
- Switched to git submodules to track deps
**v1.7.0** **v1.7.0**
- Update JUCE to 7.0.2 - Update JUCE to 7.0.2
- Started using submodules for deps - Started using submodules for deps

View File

@ -3,11 +3,11 @@
#include "../JuceLibraryCode/JuceHeader.h" #include "../JuceLibraryCode/JuceHeader.h"
#include "juce_core/system/juce_TargetPlatform.h" #include "juce_core/system/juce_TargetPlatform.h"
#include "juce_audio_plugin_client/utility/juce_CheckSettingMacros.h" #include "juce_audio_plugin_client/detail/juce_CheckSettingMacros.h"
#include "juce_audio_plugin_client/utility/juce_IncludeSystemHeaders.h" #include "juce_audio_plugin_client/detail/juce_IncludeSystemHeaders.h"
#include "juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h" #include "juce_audio_plugin_client/detail/juce_IncludeModuleHeaders.h"
#include "juce_audio_plugin_client/utility/juce_WindowsHooks.h" #include "juce_gui_basics/native/juce_WindowsHooks_windows.h"
#include <juce_audio_devices/juce_audio_devices.h> #include <juce_audio_devices/juce_audio_devices.h>
#include <juce_gui_extra/juce_gui_extra.h> #include <juce_gui_extra/juce_gui_extra.h>

View File

@ -102,7 +102,7 @@ public:
virtual void createPlugin() virtual void createPlugin()
{ {
#if JUCE_MODULE_AVAILABLE_juce_audio_plugin_client #if JUCE_MODULE_AVAILABLE_juce_audio_plugin_client
processor.reset (::createPluginFilterOfType (AudioProcessor::wrapperType_Standalone)); processor = createPluginFilterOfType (AudioProcessor::wrapperType_Standalone);
#else #else
AudioProcessor::setTypeOfNextNewPlugin (AudioProcessor::wrapperType_Standalone); AudioProcessor::setTypeOfNextNewPlugin (AudioProcessor::wrapperType_Standalone);
processor.reset (createPluginFilter()); processor.reset (createPluginFilter());
@ -524,11 +524,9 @@ private:
}; };
//============================================================================== //==============================================================================
void audioDeviceIOCallback (const float** inputChannelData, void audioDeviceIOCallbackWithContext (const float* const* inputChannelData, int numInputChannels,
int numInputChannels, float* const* outputChannelData, int numOutputChannels,
float** outputChannelData, int numSamples, const AudioIODeviceCallbackContext& context) override
int numOutputChannels,
int numSamples) override
{ {
const bool inputMuted = shouldMuteInput.getValue(); const bool inputMuted = shouldMuteInput.getValue();
@ -538,8 +536,8 @@ private:
inputChannelData = emptyBuffer.getArrayOfReadPointers(); inputChannelData = emptyBuffer.getArrayOfReadPointers();
} }
player.audioDeviceIOCallback (inputChannelData, numInputChannels, player.audioDeviceIOCallbackWithContext (inputChannelData, numInputChannels,
outputChannelData, numOutputChannels, numSamples); outputChannelData, numOutputChannels, numSamples, context);
} }
void audioDeviceAboutToStart (AudioIODevice* device) override void audioDeviceAboutToStart (AudioIODevice* device) override

View File

@ -154,7 +154,7 @@ public:
++m_silenceoutputted; ++m_silenceoutputted;
return 0.0f; return 0.0f;
}; };
float** smps = abuf.getArrayOfWritePointers(); float* const* smps = abuf.getArrayOfWritePointers();
int readinc = 1; int readinc = 1;
if (m_reverseplay) if (m_reverseplay)
readinc = -1; readinc = -1;

View File

@ -316,7 +316,7 @@ void StretchAudioSource::getNextAudioBlock(const AudioSourceChannelInfo & buffer
if (m_vol_smoother.getTargetValue() != maingain) if (m_vol_smoother.getTargetValue() != maingain)
m_vol_smoother.setTargetValue(maingain); m_vol_smoother.setTargetValue(maingain);
FloatVectorOperations::disableDenormalisedNumberSupport(); FloatVectorOperations::disableDenormalisedNumberSupport();
float** outarrays = bufferToFill.buffer->getArrayOfWritePointers(); float* const* outarrays = bufferToFill.buffer->getArrayOfWritePointers();
int outbufchans = jmin(m_num_outchans, bufferToFill.buffer->getNumChannels()); int outbufchans = jmin(m_num_outchans, bufferToFill.buffer->getNumChannels());
int offset = bufferToFill.startSample; int offset = bufferToFill.startSample;
if (m_stretchers.size() == 0) if (m_stretchers.size() == 0)

View File

@ -177,7 +177,7 @@ public:
MyThumbCache() : AudioThumbnailCache(200) MyThumbCache() : AudioThumbnailCache(200)
{ {
// The default priority of 2 is a bit too low in some cases, it seems... // The default priority of 2 is a bit too low in some cases, it seems...
getTimeSliceThread().setPriority(3); //getTimeSliceThread().setPriority(juce::Thread::Priority::highest);
} }
~MyThumbCache() {} ~MyThumbCache() {}
}; };

View File

@ -616,8 +616,8 @@ void PaulstretchpluginAudioProcessor::startplay(Range<double> playrange, int num
m_recreate_buffering_source = false; m_recreate_buffering_source = false;
} }
if (m_bufferingthread.isThreadRunning() == false) { if (m_bufferingthread.isThreadRunning() == false) {
m_bufferingthread.setPriority(8);
m_bufferingthread.startThread(); m_bufferingthread.startThread();
// m_bufferingthread.setPriority(juce::Thread::Priority::high);
} }
m_stretch_source->setNumOutChannels(numoutchans); m_stretch_source->setNumOutChannels(numoutchans);
m_stretch_source->setFFTSize(m_fft_size_to_use, true); m_stretch_source->setFFTSize(m_fft_size_to_use, true);

2
deps/juce vendored

@ -1 +1 @@
Subproject commit 965d0ca4be178c4a0000b116d460e15c30311992 Subproject commit d24c2729268e322f3ba1b5070eb96ab232d7f6ba