From a74bd5eee0a6afafb2ab7e77d8b81e6e05690d2a Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Mon, 6 Dec 2021 23:58:26 +0100 Subject: [PATCH 1/2] Don't bypass effects without inputs It's not really a great idea if you have long tails.. --- src/sfizz/Effects.cpp | 5 +---- src/sfizz/Effects.h | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/sfizz/Effects.cpp b/src/sfizz/Effects.cpp index 81cc3d00..2ca5b8a4 100644 --- a/src/sfizz/Effects.cpp +++ b/src/sfizz/Effects.cpp @@ -119,8 +119,6 @@ void EffectBus::addToInputs(const float* const addInput[], float addGain, unsign if (addGain == 0) return; - _hasSignal = true; - for (unsigned c = 0; c < EffectChannels; ++c) { absl::Span addIn { addInput[c], nframes }; sfz::multiplyAdd1(addGain, addIn, _inputs.getSpan(c).first(nframes)); @@ -165,8 +163,6 @@ void EffectBus::process(unsigned nframes) fx::Nothing().process( AudioSpan(_inputs), AudioSpan(_outputs), nframes); } - - _hasSignal = false; } void EffectBus::mixOutputsTo(float* const mainOutput[], float* const mixOutput[], unsigned nframes) @@ -185,6 +181,7 @@ size_t EffectBus::numEffects() const noexcept { return _effects.size(); } + void EffectBus::setSamplesPerBlock(int samplesPerBlock) noexcept { _inputs.resize(samplesPerBlock); diff --git a/src/sfizz/Effects.h b/src/sfizz/Effects.h index 25ce96e5..804bc4ad 100644 --- a/src/sfizz/Effects.h +++ b/src/sfizz/Effects.h @@ -109,7 +109,7 @@ public: /** @brief Checks whether this bus can produce output. */ - bool hasNonZeroOutput() const { return _hasSignal && (_gainToMain != 0 || _gainToMix != 0); } + bool hasNonZeroOutput() const { return (_gainToMain != 0 || _gainToMix != 0); } /** @brief Sets the amount of effect output going to the main. @@ -189,7 +189,6 @@ private: AudioBuffer _outputs { EffectChannels, config::defaultSamplesPerBlock }; float _gainToMain { Default::effect }; float _gainToMix { Default::effect }; - bool _hasSignal { false }; }; } // namespace sfz From 96c67e4d48245c56fd17f2542fb1384fb44a3529 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Tue, 7 Dec 2021 10:00:26 +0100 Subject: [PATCH 2/2] Deactivate the MINGW builds --- .github/workflows/build.yml | 156 ++++++++++++++++++------------------ 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ffc726a..f07f250e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -195,77 +195,77 @@ jobs: name: ${{matrix.pkg_platform}} installer path: ${{runner.workspace}}/build/${{env.install_name}}.exe - build_for_mingw: - runs-on: ubuntu-18.04 - strategy: - matrix: - include: - - platform: i686 - pkg_platform: Win32 - bits: 32 - - platform: x86_64 - pkg_platform: Win64 - bits: 64 - container: - image: archlinux - steps: - - name: Set install name - run: | - echo "install_ref=${GITHUB_REF##*/}" >> "$GITHUB_ENV" - echo "install_name=sfizz-${GITHUB_REF##*/}-mingw${{matrix.bits}}" >> "$GITHUB_ENV" - - name: Configure pacman repositories - shell: bash - run: | - cat >>/etc/pacman.conf <> "$GITHUB_ENV" + # echo "install_name=sfizz-${GITHUB_REF##*/}-mingw${{matrix.bits}}" >> "$GITHUB_ENV" + # - name: Configure pacman repositories + # shell: bash + # run: | + # cat >>/etc/pacman.conf <