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

Audio3D.hh

Go to the documentation of this file.
00001 /*
00002 
00003     3D audio engine
00004     Copyright (C) 2000-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 <Alloc.hh>
00024 #include <dsp/DSPOp.hh>
00025 #include <dsp/Filter.hh>
00026 
00027 #include "Config.h"
00028 #include "HRTF.h"
00029 
00030 
00031 #ifndef AUDIO3D_HH
00032     #define AUDIO3D_HH
00033 
00034 
00038     class clAudio3D
00039     {
00040             bool bInitialized;
00041             long lWindowSize;
00042             long lFFTSize;
00043             long lSpectSize;
00044             GDT fDistance;
00045             GDT fAmp;
00046             GDT *fpLeftFilt;
00047             GDT *fpRightFilt;
00048             GCDT *spLeftFilt;
00049             GCDT *spRightFilt;
00050             clAlloc LeftData;
00051             clAlloc RightData;
00052             clAlloc LeftFilt;
00053             clAlloc RightFilt;
00054             clAlloc CLeftFilt;
00055             clAlloc CRightFilt;
00056             clDSPOp DSP;
00057             clFilter FilterLeft;
00058             clFilter FilterRight;
00059             void CopyToLocal (GDT *, const float *);
00060             void HeadingElevN40 (int) {}
00061             void HeadingElevN30 (int) {}
00062             void HeadingElevN20 (int) {}
00063             void HeadingElevN10 (int) {}
00064             void HeadingElev0 (int);
00065             void HeadingElev10 (int) {}
00066             void HeadingElev20 (int) {}
00067             void HeadingElev30 (int) {}
00068             void HeadingElev40 (int) {}
00069             void HeadingElev50 (int) {}
00070             void HeadingElev60 (int) {}
00071             void HeadingElev70 (int) {}
00072             void HeadingElev80 (int) {}
00073             void HeadingElev90 ();
00074             void Prepare (bool);
00075             void ProcessDistance (GDT *, GDT *, long);
00076         public:
00077             clAudio3D ();
00078             ~clAudio3D ();
00086             void Initialize (long);
00090             void Uninitialize ();
00100             void SetAngles (int, int, GDT);
00106             void Process (GDT *);
00113             void Process (GDT *, GDT *);
00119             long GetWindowSize () { return lWindowSize; }
00120     };
00121 
00122 #endif
00123 

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