MythTV  0.25-pre
AAFilter.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 //
00016 // Last changed  : $Date$
00017 // File revision : $Revision$
00018 //
00019 // $Id$
00020 //
00022 //
00023 // License :
00024 //
00025 //  SoundTouch audio processing library
00026 //  Copyright (c) Olli Parviainen
00027 //
00028 //  This library is free software; you can redistribute it and/or
00029 //  modify it under the terms of the GNU Lesser General Public
00030 //  License as published by the Free Software Foundation; either
00031 //  version 2.1 of the License, or (at your option) any later version.
00032 //
00033 //  This library is distributed in the hope that it will be useful,
00034 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00035 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00036 //  Lesser General Public License for more details.
00037 //
00038 //  You should have received a copy of the GNU Lesser General Public
00039 //  License along with this library; if not, write to the Free Software
00040 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00041 //
00043 
00044 #ifndef AAFilter_H
00045 #define AAFilter_H
00046 
00047 #include "STTypes.h"
00048 
00049 
00050 class AAFilter
00051 {
00052 protected:
00053     class FIRFilter *pFIR;
00054 
00056     double cutoffFreq;
00057 
00059     uint length;
00060 
00062     void calculateCoeffs();
00063 public:
00064     AAFilter(uint length);
00065 
00066     ~AAFilter();
00067 
00071     void setCutoffFreq(double newCutoffFreq);
00072 
00074     void setLength(uint newLength);
00075 
00076     uint getLength() const;
00077 
00081     uint evaluate(soundtouch::SAMPLETYPE *dest, 
00082                   const soundtouch::SAMPLETYPE *src, 
00083                   uint numSamples, 
00084                   uint numChannels) const;
00085 };
00086 
00087 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends