Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

ArrayDipole.hh

Go to the documentation of this file.
00001 /*
00002 
00003     Class for dipole array operations
00004     Copyright (C) 1999-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 <dsp/DSPOp.hh>
00024 #include <dsp/Filter.hh>
00025 
00026 #include "Config.h"
00027 #include "ArrayBase.hh"
00028 
00029 
00030 #ifndef ARRAYDIPOLE_HH
00031     #define ARRAYDIPOLE_HH
00032 
00033 
00037     class clArrayDipole : private clArrayBase
00038     {
00039             bool bInitialized;
00040             long lWindowSize;  
00041             long lBufferSize;  
00042             long lBaseIdx;  
00043             int iSampleRate;
00044             GDT fSpacing;
00045             GDT fDelay;
00047             clDSPAlloc RawBuf[2];
00049             clDSPAlloc FiltBuf[2];
00051             clDSPAlloc HFBuf[2];
00053             clFilter FilterBank[4];
00054         public:
00055             clArrayDipole ();
00056             ~clArrayDipole ();
00070             bool Initialize (GDT, GDT, int, long, GDT, bool);
00074             void Uninitialize ();
00081             GDT *GetRawPtr (long);
00083             GDT *GetFiltPtr (long);
00085             GDT *GetHFPtr (long);
00093             long GetMaxDelay ();
00103             GDT GetArrayFreq ();
00114             GDT GetDelay (GDT);
00125             GDT GetDelayTime (long, GDT);
00134             long GetDelaySamples (long, GDT);
00140             void SetLowFreqLimit (GDT);
00151             void AddData (const GDT *, long, long);
00158             void GetRawData (GDT **, GDT);
00165             GDT *GetRawDataPtr (long, GDT);
00172             void GetFilteredData (GDT **, GDT);
00179             GDT *GetFilteredDataPtr (long, GDT);
00187             void GetAudioData (GDT *, GDT, bool);
00188     };
00189 
00190 #endif

Generated on Sun Oct 26 19:11:18 2003 for HASAS by doxygen 1.3.3