#include <BinauralDB.h>
Public Member Functions | |
| HRTF () | |
| generic constructor allocates all data | |
| HRTF (char *fname, FFTWrapper &fft) | |
| load an HRIR file and do FFTs | |
| ~HRTF () | |
| void | dump () |
| Prints the position that corresponds to this HRTF. | |
| unsigned | size () |
| returns the size on bytes of the receiver's storage | |
Public Attributes | |
| CPoint | mPosition |
| The Position at which the HRIR was recorded. | |
| SampleComplexVector * | mHrtfL |
| SampleComplexVector * | mHrtfR |
| unsigned | mNumFFTBlocks |
| # of blocks (16) | |
| HRTF::HRTF | ( | ) |
generic constructor allocates all data
HRTF constructor allocates memory for the HRTF data and then reads the HRIR file and performs the block-wise FFT
References HRIR_SIZE, HRTF_BLOCK_SIZE, mHrtfL, mHrtfR, mNumFFTBlocks, and SAFE_MALLOC.
| HRTF::HRTF | ( | char * | fname, | |
| FFTWrapper & | fft | |||
| ) |
load an HRIR file and do FFTs
References CSL_DEGS_PER_RAD, HRIR_SIZE, HRTF_BLOCK_SIZE, csl::kLogError, csl::logMsg(), csl::Buffer::mBuffers, mHrtfL, mHrtfR, mNumFFTBlocks, mPosition, SAFE_MALLOC, and csl::CPoint::set().
| HRTF::~HRTF | ( | ) |
References mHrtfL, mHrtfR, mNumFFTBlocks, and SAFE_FREE.
| void HRTF::dump | ( | void | ) |
Prints the position that corresponds to this HRTF.
References CSL_DEGS_PER_RAD, csl::CPoint::ele(), csl::logMsg(), mPosition, and csl::CPoint::theta().
| unsigned HRTF::size | ( | ) |
The Position at which the HRIR was recorded.
Referenced by dump(), HRTF(), and csl::HRTFDatabase::loadFromDB().
Referenced by HRTF(), csl::HRTFDatabase::loadFromDB(), csl::BinauralPanner::nextBuffer(), csl::HRTFDatabase::storeToDB(), and ~HRTF().
2 arrays of arrays of mNumFFTBlocks * complex[513]: the HRTF data in blocks of complex # for stereo
Referenced by HRTF(), csl::HRTFDatabase::loadFromDB(), csl::BinauralPanner::nextBuffer(), csl::HRTFDatabase::storeToDB(), and ~HRTF().
| unsigned csl::HRTF::mNumFFTBlocks |
1.5.8