Fix Windows build (post 356374b
)
Multiple definition of `ARDOUR::MPControl<bool>::set_value`
This commit is contained in:
parent
356374bfb3
commit
8ca4c4a255
@ -119,6 +119,8 @@ protected:
|
|||||||
T _normal;
|
T _normal;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<> void MPControl<bool>::set_value (double v, PBD::Controllable::GroupControlDisposition gcd);
|
||||||
|
|
||||||
class LIBARDOUR_API MonitorProcessor : public Processor
|
class LIBARDOUR_API MonitorProcessor : public Processor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -102,17 +102,8 @@ private:
|
|||||||
class OutputFormatControl : public MPControl<bool>
|
class OutputFormatControl : public MPControl<bool>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
OutputFormatControl (bool v, std::string const& n, PBD::Controllable::Flag f)
|
OutputFormatControl (bool v, std::string const& n, PBD::Controllable::Flag f);
|
||||||
: MPControl<bool> (v, n, f)
|
virtual std::string get_user_string () const;
|
||||||
{}
|
|
||||||
|
|
||||||
virtual std::string get_user_string () const {
|
|
||||||
if (get_value () == 0) {
|
|
||||||
return "7.1.4";
|
|
||||||
} else {
|
|
||||||
return "5.1";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::shared_ptr<OutputFormatControl> _output_format_control;
|
std::shared_ptr<OutputFormatControl> _output_format_control;
|
||||||
|
@ -30,6 +30,19 @@
|
|||||||
|
|
||||||
using namespace ARDOUR;
|
using namespace ARDOUR;
|
||||||
|
|
||||||
|
SurroundReturn::OutputFormatControl::OutputFormatControl (bool v, std::string const& n, PBD::Controllable::Flag f)
|
||||||
|
: MPControl<bool> (v, n, f)
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string
|
||||||
|
SurroundReturn::OutputFormatControl::get_user_string () const {
|
||||||
|
if (get_value () == 0) {
|
||||||
|
return "7.1.4";
|
||||||
|
} else {
|
||||||
|
return "5.1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SurroundReturn::SurroundReturn (Session& s, Route* r)
|
SurroundReturn::SurroundReturn (Session& s, Route* r)
|
||||||
: Processor (s, _("SurrReturn"), Temporal::TimeDomainProvider (Temporal::AudioTime))
|
: Processor (s, _("SurrReturn"), Temporal::TimeDomainProvider (Temporal::AudioTime))
|
||||||
, _lufs_meter (s.nominal_sample_rate (), 5)
|
, _lufs_meter (s.nominal_sample_rate (), 5)
|
||||||
|
Loading…
Reference in New Issue
Block a user