Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AUD_LowpassCalculator.h « FX « audaspace « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18bb11feda7150d64d415f73c6c4e252aad52b06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef AUD_LOWPASSCALCULATOR_H
#define AUD_LOWPASSCALCULATOR_H

#include "AUD_IDynamicIIRFilterCalculator.h"

class AUD_LowpassCalculator : public AUD_IDynamicIIRFilterCalculator
{
private:
	/**
	 * The cutoff frequency.
	 */
	const float m_frequency;

	/**
	 * The Q factor.
	 */
	const float m_Q;

public:
	AUD_LowpassCalculator(float frequency, float Q);

	virtual void recalculateCoefficients(AUD_SampleRate rate, std::vector<float> &b, std::vector<float> &a);
};

#endif // AUD_LOWPASSCALCULATOR_H