mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibDSP: Introduce ProcessorEnumParameter
This commit is contained in:
parent
cc9aab7462
commit
7663fbb19e
1 changed files with 9 additions and 0 deletions
|
@ -118,6 +118,15 @@ private:
|
||||||
double const m_default_value;
|
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<>
|
template<>
|
||||||
struct AK::Formatter<LibDSP::ProcessorRangeParameter> : AK::StandardFormatter {
|
struct AK::Formatter<LibDSP::ProcessorRangeParameter> : AK::StandardFormatter {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue