Audaspace 1.5.0
A high level audio library.
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
HRTFLoader Class Reference

This loader provides a method to load all the HRTFs in one directory, provided they follow the following naming scheme: Example: L-10e210a.wav The first character refers to the ear from which the HRTF was recorded: 'L' for a left ear and 'R' for a right ear. More...

#include <HRTFLoader.h>

Static Public Member Functions

static std::shared_ptr< HRTFloadLeftHRTFs (std::shared_ptr< FFTPlan > plan, const std::string &fileExtension, const std::string &path="")
 Loads all the left ear HRTFs in the directory.Onle one ear HRTFs for all azimuths [0,360) are needed for binaural sound.
 
static std::shared_ptr< HRTFloadRightHRTFs (std::shared_ptr< FFTPlan > plan, const std::string &fileExtension, const std::string &path="")
 Loads all the right ear HRTFs in the directory.
 
static std::shared_ptr< HRTFloadLeftHRTFs (const std::string &fileExtension, const std::string &path="")
 Loads all the left ear HRTFs in the directory.Onle one ear HRTFs for all azimuths [0,360) are needed for binaural sound.
 
static std::shared_ptr< HRTFloadRightHRTFs (const std::string &fileExtension, const std::string &path="")
 Loads all the right ear HRTFs in the directory.
 

Detailed Description

This loader provides a method to load all the HRTFs in one directory, provided they follow the following naming scheme: Example: L-10e210a.wav The first character refers to the ear from which the HRTF was recorded: 'L' for a left ear and 'R' for a right ear.

Next is the elevation angle followed by the 'e' character. [-90, 90] Then is the azimuth angle followed by the 'a' character. [0, 360) For a sound source situated at the left of the listener the azimuth angle regarding the left ear is 90 while the angle regarding the right ear is 270. KEMAR HRTFs use this naming scheme.

Member Function Documentation

◆ loadLeftHRTFs() [1/2]

static std::shared_ptr< HRTF > HRTFLoader::loadLeftHRTFs ( const std::string & fileExtension,
const std::string & path = "" )
static

Loads all the left ear HRTFs in the directory.Onle one ear HRTFs for all azimuths [0,360) are needed for binaural sound.

Parameters
fileExtensionThe extension of the HRTF files.
pathThe path to the folder containing the HRTFs.
Returns
A shared pointer to a loaded HRTF object.

◆ loadLeftHRTFs() [2/2]

static std::shared_ptr< HRTF > HRTFLoader::loadLeftHRTFs ( std::shared_ptr< FFTPlan > plan,
const std::string & fileExtension,
const std::string & path = "" )
static

Loads all the left ear HRTFs in the directory.Onle one ear HRTFs for all azimuths [0,360) are needed for binaural sound.

Parameters
planThe plan that will be used to create the HRTF object.
fileExtensionThe extension of the HRTF files.
pathThe path to the folder containing the HRTFs.
Returns
A shared pointer to a loaded HRTF object.

◆ loadRightHRTFs() [1/2]

static std::shared_ptr< HRTF > HRTFLoader::loadRightHRTFs ( const std::string & fileExtension,
const std::string & path = "" )
static

Loads all the right ear HRTFs in the directory.

Onle one ear HRTFs for all azimuths [0,360) are needed for binaural sound.

Parameters
fileExtensionThe extension of the HRTF files.
pathThe path to the folder containing the HRTFs.
Returns
A shared pointer to a loaded HRTF object.

◆ loadRightHRTFs() [2/2]

static std::shared_ptr< HRTF > HRTFLoader::loadRightHRTFs ( std::shared_ptr< FFTPlan > plan,
const std::string & fileExtension,
const std::string & path = "" )
static

Loads all the right ear HRTFs in the directory.

Onle one ear HRTFs for all azimuths [0,360) are needed for binaural sound.

Parameters
planThe plan that will be used to create the HRTF object.
fileExtensionThe extension of the HRTF files.
pathThe path to the folder containing the HRTFs.
Returns
A shared pointer to a loaded HRTF object.

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