⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 allpass.hpp

📁 VLC Player Source Code
💻 HPP
字号:
// Allpass filter declaration//// Written by Jezar at Dreampoint, June 2000// http://www.dreampoint.co.uk// This code is public domain#ifndef _allpass_#define _allpass_#include "denormals.h"class allpass{public:        allpass();    void    setbuffer(float *buf, int size);    inline  float    process(float inp);    void    mute();    void    setfeedback(float val);    float    getfeedback();// private:    float    feedback;    float    *buffer;    int    bufsize;    int    bufidx;};// Big to inline - but crucial for speedinline float allpass::process(float input){    float output;    float bufout;    bufout = undenormalise( buffer[bufidx] );    output = -input + bufout;    buffer[bufidx] = input + (bufout*feedback);    if(++bufidx>=bufsize) bufidx = 0;    return output;}#endif//_allpass//ends

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -