CSL  6.0
csl::HRTF Class Reference

HRTF: holds the data that corresponds to an HRTF for a single position. It has a list of complex buffers for the FFTs of the HRIR, typically 16 blocks of 512 each for an 8k HRTF. This version knows how to parse the IRCAM hrtfs sets Subclasses could load different HRTF sets (e.g., CIPIC). More...

#include <BinauralDB.h>

Public Member Functions

 HRTF ()
 HRTF constructor allocates memory for the HRTF data and then reads the HRIR file and performs the block-wise FFT. More...
 
 HRTF (char *fname, FFT_Wrapper &fft)
 load an HRIR file and do FFTs More...
 
 ~HRTF ()
 
void dump ()
 Prints the position that corresponds to this HRTF. More...
 
unsigned size ()
 returns the size on bytes of the receiver's storage More...
 

Public Attributes

CPoint mPosition
 The Position at which the HRIR was recorded. More...
 
SampleComplexVectormHrtfL
 
SampleComplexVectormHrtfR
 2 arrays of arrays of mNumFFTBlocks * complex[513]: the HRTF data in blocks of complex # for stereo More...
 
unsigned mNumFFTBlocks
 

of blocks (16)

More...
 

Detailed Description

HRTF: holds the data that corresponds to an HRTF for a single position. It has a list of complex buffers for the FFTs of the HRIR, typically 16 blocks of 512 each for an 8k HRTF. This version knows how to parse the IRCAM hrtfs sets Subclasses could load different HRTF sets (e.g., CIPIC).

Definition at line 101 of file BinauralDB.h.

Constructor & Destructor Documentation

HRTF::HRTF ( )

HRTF constructor allocates memory for the HRTF data and then reads the HRIR file and performs the block-wise FFT.

generic constructor allocates all data

Definition at line 23 of file BinauralDB.cpp.

References HRIR_SIZE, HRTF_BLOCK_SIZE, and SAFE_MALLOC.

HRTF::HRTF ( char *  fname,
FFT_Wrapper &  fft 
)

load an HRIR file and do FFTs

Definition at line 43 of file BinauralDB.cpp.

References CSL_DEGS_PER_RAD, HRIR_SIZE, HRTF_BLOCK_SIZE, csl::kLogError, csl::logMsg(), SAFE_MALLOC, and csl::Buffer::setBuffer().

HRTF::~HRTF ( )

Definition at line 114 of file BinauralDB.cpp.

References SAFE_FREE.

Member Function Documentation

void HRTF::dump ( void  )

Prints the position that corresponds to this HRTF.

Definition at line 125 of file BinauralDB.cpp.

References CSL_DEGS_PER_RAD, and csl::logMsg().

unsigned HRTF::size ( )

returns the size on bytes of the receiver's storage

Definition at line 133 of file BinauralDB.cpp.

References HRTF_BLOCK_SIZE.

Member Data Documentation

CPoint csl::HRTF::mPosition

The Position at which the HRIR was recorded.

Definition at line 111 of file BinauralDB.h.

Referenced by csl::HRTFDatabase::loadFromDB().

SampleComplexVector * csl::HRTF::mHrtfR

2 arrays of arrays of mNumFFTBlocks * complex[513]: the HRTF data in blocks of complex # for stereo

Definition at line 112 of file BinauralDB.h.

Referenced by csl::HRTFDatabase::loadFromDB(), csl::BinauralPanner::nextBuffer(), and csl::HRTFDatabase::storeToDB().

unsigned csl::HRTF::mNumFFTBlocks

of blocks (16)

Definition at line 114 of file BinauralDB.h.


The documentation for this class was generated from the following files: