mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +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;
|
||||
};
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue