X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fgain.cc;h=a3c27f42605769bb459ef06aa06339cee9f1f349;hb=6be56d78b199452e5dba726f2d7aaab2777d2b49;hp=369df7348c43aec94a2bdd5e58b3ec08c1f793dd;hpb=99904735e066804358f1d0bd138a84f1e9ecda91;p=ardour.git diff --git a/libs/ardour/gain.cc b/libs/ardour/gain.cc index 369df7348c..a3c27f4260 100644 --- a/libs/ardour/gain.cc +++ b/libs/ardour/gain.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2000 Paul Davis + Copyright (C) 2000 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,17 +17,17 @@ */ -#include +#include "ardour/gain.h" using namespace ARDOUR; Gain::Gain () - : Curve (0.0, 2.0, 1.0f) /* XXX yuck; clamps gain to -inf .. +6db */ + : AutomationList (Evoral::Parameter(GainAutomation)) /* XXX yuck; clamps gain to -inf .. +6db */ { } Gain::Gain (const Gain& other) - : Curve (other) + : AutomationList (other) { } @@ -35,27 +35,27 @@ Gain& Gain::operator= (const Gain& other) { if (this != &other) { - Curve::operator= (other); + AutomationList::operator= (other); } return *this; } void -Gain::fill_linear_volume_fade_in (Gain& gain, nframes_t frames) +Gain::fill_linear_volume_fade_in (Gain& /*gain*/, framecnt_t /*frames*/) { } void -Gain::fill_linear_volume_fade_out (Gain& gain, nframes_t frames) +Gain::fill_linear_volume_fade_out (Gain& /*gain*/, framecnt_t /*frames*/) { } void -Gain::fill_linear_fade_in (Gain& gain, nframes_t frames) +Gain::fill_linear_fade_in (Gain& /*gain*/, framecnt_t /*frames*/) { } void -Gain::fill_linear_fade_out (Gain& gain, nframes_t frames) +Gain::fill_linear_fade_out (Gain& /*gain*/, framecnt_t /*frames*/) { }