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 < 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