File: allpass.cpp

package info (click to toggle)
vlc 2.2.0~rc2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 180,528 kB
  • sloc: ansic: 354,395; cpp: 93,741; objc: 33,763; sh: 13,938; makefile: 4,266; xml: 1,537; asm: 1,251; python: 240; perl: 77; sed: 16
file content (36 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (5)
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
26
27
28
29
30
31
32
33
34
35
36
// Allpass filter implementation
//
// Written by Jezar at Dreampoint, June 2000
// http://www.dreampoint.co.uk
// This code is public domain

#include "allpass.hpp"

allpass::allpass()
{
    bufidx = 0;
}

void allpass::setbuffer(float *buf, int size)
{
    buffer = buf;
    bufsize = size;
}

void allpass::mute()
{
    for (int i=0; i<bufsize; i++)
        buffer[i]=0;
}

void allpass::setfeedback(float val)
{
    feedback = val;
}

float allpass::getfeedback()
{
    return feedback;
}

//ends