From 6b5eedca8ed4c761de2202a5d4fe7711af7be198 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 Aug 2016 23:46:20 -0400 Subject: Use template mixins for extensions --- plugins/eg-midiamp.lv2/midiamp.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/eg-midiamp.lv2/midiamp.cpp b/plugins/eg-midiamp.lv2/midiamp.cpp index 2fff4e7..ac3d055 100644 --- a/plugins/eg-midiamp.lv2/midiamp.cpp +++ b/plugins/eg-midiamp.lv2/midiamp.cpp @@ -1,5 +1,5 @@ /* - Copyright 2015 David Robillard + Copyright 2015-2016 David Robillard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -23,14 +23,17 @@ #include "lv2/lv2plug.in/ns/lv2core/Lib.hpp" #include "lv2/lv2plug.in/ns/lv2core/Plugin.hpp" +class MidiAmp; +typedef typename lv2::Plugin Base; + /** MIDI-controlled amplifier. */ -class MidiAmp : public lv2::Plugin { +class MidiAmp : public Base { public: MidiAmp(double rate, const char* bundle_path, const LV2_Feature* const* features, bool* valid) - : Plugin(rate, bundle_path, features, valid) + : Base(rate, bundle_path, features, valid) , m_map(features, valid) , m_vol(1.0f) { -- cgit v1.2.1