allpass.cpp
资源名称:vlc-1.0.5.zip [点击查看]
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:0k
源码类别:
midi
开发平台:
Unix_Linux
- // 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