46 virtual void Refresh(vk::raii::CommandBuffer& cmdBuf, std::shared_ptr<QueueHandle> queue)
override;
48 static std::string GetProtocolName();
54 vk::raii::CommandBuffer& cmdBuf,
55 std::shared_ptr<QueueHandle> queue,
59 FIRFilterType GetFilterType()
60 {
return m_filterType.
GetEnumVal<FIRFilterType>(); }
62 void SetFilterType(FIRFilterType type)
65 void SetFreqLow(
float freq)
68 void SetFreqHigh(
float freq)
72 {
return m_coefficients; }
76 void CalculateFilterCoefficients(
float fa,
float fb,
float stopbandAtten, FIRFilterType type)
Definition AcceleratorBuffer.h:204
Encapsulates a Vulkan compute pipeline and all necessary resources to use it.
Definition ComputePipeline.h:55
Performs an arbitrary FIR filter with tap delay equal to the sample rate.
Definition FIRFilter.h:42
virtual void SetDefaultName() override
Sets the name of a filter based on its inputs.
Definition FIRFilter.cpp:79
A parameter to a filter.
Definition FilterParameter.h:86
void SetIntVal(int64_t i)
Sets the parameter to an integer value.
Definition FilterParameter.cpp:307
T GetEnumVal() const
Returns the value of the parameter interpreted as an enum.
Definition FilterParameter.h:126
void SetFloatVal(float f)
Sets the parameter to a floating point value.
Definition FilterParameter.cpp:323
Abstract base class for all filter graph blocks which are not physical instrument channels.
Definition Filter.h:105
static void CalculateFIRCoefficients(float fa, float fb, float stopbandAtten, FIRFilterType type, AcceleratorBuffer< float > &coefficients)
Calculates FIR coefficients.
Definition Filter.cpp:1393