LibDSP: Introduce ProcessorEnumParameter

This commit is contained in:
kleines Filmröllchen 2021-10-31 14:09:43 +01:00 committed by Andreas Kling
parent cc9aab7462
commit 7663fbb19e
Notes: sideshowbarker 2024-07-18 00:51:33 +09:00

View File

@ -118,6 +118,15 @@ private:
double const m_default_value;
};
template<typename EnumT>
requires(IsEnum<EnumT>) class ProcessorEnumParameter final : public Detail::ProcessorParameterSingleValue<EnumT> {
public:
ProcessorEnumParameter(String name, EnumT initial_value)
: Detail::ProcessorParameterSingleValue<EnumT>(move(name), initial_value, ParameterType::Enum)
{
}
};
}
template<>
struct AK::Formatter<LibDSP::ProcessorRangeParameter> : AK::StandardFormatter {