Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
allpass.cpp
Go to the documentation of this file.
1 // Allpass filter implementation
2//
3// Written by Jezar at Dreampoint, June 2000
4// http://www.dreampoint.co.uk
5// This code is public domain
6
7#include "allpass.hpp"
8
9allpass::allpass()
10{
11 bufidx = 0;
12}
13
14void allpass::setbuffer(float *buf, int size)
15{
16 buffer = buf;
17 bufsize = size;
18}
19
20void allpass::mute()
21{
22 for (int i=0; i<bufsize; i++)
23 buffer[i]=0;
24}
25
26void allpass::setfeedback(float val)
27{
28 feedback = val;
29}
30
31float allpass::getfeedback()
32{
33 return feedback;
34}
35
36//ends
T size(T... args)