00001 /* 00002 00003 Class for flipping odd frequency bands, header 00004 Copyright (C) 2003 Jussi Laako 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 */ 00021 00022 00023 #include "DSPOp.hh" 00024 #include "ReBuffer.hh" 00025 00026 00027 #ifndef FLIPBAND_HH 00028 #define FLIPBAND_HH 00029 00030 00031 class clFlipBand 00032 { 00033 bool bInitialized; 00034 long lBlockSize; 00035 long lCBlockSize; 00036 clDSPAlloc Proc; 00037 clDSPAlloc CProc; 00038 clDSPOp DSP; 00039 clReBuffer InBuf; 00040 clReBuffer OutBuf; 00041 public: 00042 clFlipBand (); 00043 ~clFlipBand (); 00050 void Initialize (long, const float *); 00052 void Initialize (long, const double *); 00056 void Uninitialize (); 00063 void Put (const float *, long); 00065 void Put (const double *, long); 00073 bool Get (float *, long); 00075 bool Get (double *, long); 00079 void Clear (); 00080 }; 00081 00082 #endif