Skip to content

Commit

Permalink
LIB: LiveDecoderSource: make set_portamento_freq pure virtual
Browse files Browse the repository at this point in the history
Every source should implement it.

Signed-off-by: Stefan Westerfeld <[email protected]>
  • Loading branch information
swesterfeld committed Apr 10, 2024
1 parent 407aa61 commit 5dc7bd1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/smlivedecodersource.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down

0 comments on commit 5dc7bd1

Please sign in to comment.