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 std::shared_ptr< HRTF > | loadLeftHRTFs (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< HRTF > | loadRightHRTFs (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< HRTF > | loadLeftHRTFs (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< HRTF > | loadRightHRTFs (const std::string &fileExtension, const std::string &path="") |
| Loads all the right ear HRTFs in the directory.
|
|
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.
◆ 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
-
fileExtension | The extension of the HRTF files. |
path | The 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
-
plan | The plan that will be used to create the HRTF object. |
fileExtension | The extension of the HRTF files. |
path | The 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
-
fileExtension | The extension of the HRTF files. |
path | The 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
-
plan | The plan that will be used to create the HRTF object. |
fileExtension | The extension of the HRTF files. |
path | The 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: