Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
allpass.hpp
Package: vlc-1.0.5.zip [view]
Upload User: kjfoods
Upload Date: 2020-07-06
Package Size: 29949k
Code Size: 1k
Category:
midi program
Development Platform:
Unix_Linux
- // 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 speed
- inline 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