mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibDSP: Introduce ProcessorEnumParameter
This commit is contained in:
parent
cc9aab7462
commit
7663fbb19e
Notes:
sideshowbarker
2024-07-18 00:51:33 +09:00
Author: https://github.com/kleinesfilmroellchen Commit: https://github.com/SerenityOS/serenity/commit/7663fbb19e7 Pull-request: https://github.com/SerenityOS/serenity/pull/10726
@ -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…
Reference in New Issue
Block a user