From 5dc7bd1145eaa059588434cc95b2133e4221e380 Mon Sep 17 00:00:00 2001 From: Stefan Westerfeld Date: Wed, 10 Apr 2024 14:59:32 +0200 Subject: [PATCH] LIB: LiveDecoderSource: make set_portamento_freq pure virtual Every source should implement it. Signed-off-by: Stefan Westerfeld --- lib/smlivedecodersource.hh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/smlivedecodersource.hh b/lib/smlivedecodersource.hh index df1dbccc..44832fd5 100644 --- a/lib/smlivedecodersource.hh +++ b/lib/smlivedecodersource.hh @@ -14,11 +14,7 @@ public: virtual void retrigger (int channel, float freq, int midi_velocity) = 0; virtual Audio *audio() = 0; virtual bool rt_audio_block (size_t index, RTAudioBlock& rt_audio_block) = 0; - virtual void - set_portamento_freq (float freq) - { - /* should be reimplemented by non-trivial sources */ - } + virtual void set_portamento_freq (float freq) = 0; virtual ~LiveDecoderSource(); };