|
Audaspace 1.7.0
A high level audio library.
|
This class represents a complete set of HRTFs. More...
#include <HRTF.h>
Public Member Functions | |
| HRTF () | |
| Creates a new empty HRTF object that will instance it own FFTPlan with default size. | |
| HRTF (std::shared_ptr< FFTPlan > plan) | |
| Creates a new empty HRTF object. | |
| bool | addImpulseResponse (std::shared_ptr< StreamBuffer > impulseResponse, float azimuth, float elevation) |
| Adds a new HRTF to the class. | |
| std::pair< std::shared_ptr< ImpulseResponse >, std::shared_ptr< ImpulseResponse > > | getImpulseResponse (float &azimuth, float &elevation) |
| Retrieves a pair of HRTFs for a certain azimuth and elevation. | |
| Specs | getSpecs () |
| Retrieves the specs shared by all the HRTFs. | |
| bool | isEmpty () |
| Retrieves the state of the HRTF object. | |
This class represents a complete set of HRTFs.
| HRTF::HRTF | ( | std::shared_ptr< FFTPlan > | plan | ) |
Creates a new empty HRTF object.
| plan | A shared pointer to a FFT plan used to transform the impulse responses added. |
| bool HRTF::addImpulseResponse | ( | std::shared_ptr< StreamBuffer > | impulseResponse, |
| float | azimuth, | ||
| float | elevation ) |
Adds a new HRTF to the class.
| impulseResponse | A shared pointer to an StreamBuffer with the HRTF. |
| azimuth | The azimuth angle of the HRTF. Interval [0,360). |
| elevation | The elevation angle of the HRTF. |
| std::pair< std::shared_ptr< ImpulseResponse >, std::shared_ptr< ImpulseResponse > > HRTF::getImpulseResponse | ( | float & | azimuth, |
| float & | elevation ) |
Retrieves a pair of HRTFs for a certain azimuth and elevation.
If no exact match is found, the closest ones will be chosen (the elevation has priority over the azimuth).
| [in,out] | azimuth | The desired azimuth angle. If no exact match is found, the value of azimuth will represent the actual azimuth elevation of the chosen HRTF. Interval [0,360) |
| [in,out] | elevation | The desired elevation angle. If no exact match is found, the value of elevation will represent the actual elevation angle of the chosen HRTF. |
| Specs HRTF::getSpecs | ( | ) |
Retrieves the specs shared by all the HRTFs.
| bool HRTF::isEmpty | ( | ) |
Retrieves the state of the HRTF object.