From 439f696847b69492d40bc7764f8163b409125dd1 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Thu, 25 Mar 2021 16:43:34 +0100 Subject: [PATCH] Fix a minor warning --- src/sfizz/modulations/sources/ChannelAftertouch.cpp | 5 ++--- src/sfizz/modulations/sources/ChannelAftertouch.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sfizz/modulations/sources/ChannelAftertouch.cpp b/src/sfizz/modulations/sources/ChannelAftertouch.cpp index 3bee93df..96658aee 100644 --- a/src/sfizz/modulations/sources/ChannelAftertouch.cpp +++ b/src/sfizz/modulations/sources/ChannelAftertouch.cpp @@ -8,13 +8,12 @@ #include "../../ModifierHelpers.h" #include "../../ADSREnvelope.h" -// TODO(jpc): also matrix the ampeg - namespace sfz { ChannelAftertouchSource::ChannelAftertouchSource(VoiceManager& manager, MidiState& state) - : voiceManager_(manager), midiState_(state) + : midiState_(state) { + (void)manager; } void ChannelAftertouchSource::init(const ModKey& sourceKey, NumericId voiceId, unsigned delay) diff --git a/src/sfizz/modulations/sources/ChannelAftertouch.h b/src/sfizz/modulations/sources/ChannelAftertouch.h index 6ed9ac2c..d162b7ec 100644 --- a/src/sfizz/modulations/sources/ChannelAftertouch.h +++ b/src/sfizz/modulations/sources/ChannelAftertouch.h @@ -20,7 +20,6 @@ public: void generate(const ModKey& sourceKey, NumericId voiceId, absl::Span buffer) override; private: - VoiceManager& voiceManager_; MidiState& midiState_; };