HoaLibrary
2.0
High Order Ambisonics Library
|
The ambisonic decoder. More...
#include <Decoder.h>
Public Member Functions | |
Decoder (unsigned int order, unsigned int numberOfLoudspeakers) | |
~Decoder () | |
unsigned int | getNumberOfLoudspeakers () const |
This method retrieve the number of loudspeakers. More... | |
void | setLoudspeakerPosition (unsigned int index, double azimuth, double elevation) |
double | getLoudspeakerAzimuth (unsigned int index) const |
double | getLoudspeakerElevation (unsigned int index) const |
void | process (const float *input, float *output) |
void | process (const double *input, double *output) |
![]() | |
Ambisonic (unsigned int order) | |
The ambisonic constructor. More... | |
~Ambisonic () | |
The ambisonic destructor. More... | |
unsigned int | getOrder () const |
Retrieve the decomposition order. More... | |
unsigned int | getNumberOfHarmonics () const |
Retrieve the number of harmonics. More... | |
int | getHarmonicArgument (const unsigned int index) const |
Retrieve the argument of an harmonic. More... | |
unsigned int | getHarmonicBand (const unsigned int index) const |
Retrieve the band of an harmonic. More... | |
std::string | getHarmonicsName (const unsigned int index) const |
Retrieve a name for an harmonic. More... | |
The ambisonic decoder.
The decoder should be used to decode a signal encoded in the spherical harmonics domain depending on a decomposition order and a number of loudspeakers.
Hoa3D::Decoder::Decoder | ( | unsigned int | order, |
unsigned int | numberOfLoudspeakers | ||
) |
The decoder constructor.
order | The order, must be at least 1. |
numberOfLoudspeakers | The number of loudspeakers, must be at least (order + 1)^2. |
shape | Is a sphere or a half sphere. |
Definition at line 11 of file Decoder.cpp.
Hoa3D::Decoder::~Decoder | ( | ) |
The decoder destructor.
Definition at line 60 of file Decoder.cpp.
double Hoa3D::Decoder::getLoudspeakerAzimuth | ( | unsigned int | index | ) | const |
Get loudspeaker azimuth value.
index | The index of the loudspeaker. |
Definition at line 38 of file Decoder.cpp.
double Hoa3D::Decoder::getLoudspeakerElevation | ( | unsigned int | index | ) | const |
Get loudspeakers elevation value.
index | The index of the loudspeaker. |
Definition at line 44 of file Decoder.cpp.
|
inline |
void Hoa3D::Decoder::process | ( | const float * | input, |
float * | output | ||
) |
This method performs the decoding with single precision.
input | The inputs array. |
outputs | The output array that contains samples destinated to loudspeakers. |
Definition at line 50 of file Decoder.cpp.
void Hoa3D::Decoder::process | ( | const double * | input, |
double * | output | ||
) |
This method performs the decoding with double precision.
input | The inputs array. |
outputs | The output array that contains samples destinated to loudspeakers. |
Definition at line 55 of file Decoder.cpp.
void Hoa3D::Decoder::setLoudspeakerPosition | ( | unsigned int | index, |
double | azimuth, | ||
double | elevation | ||
) |
Set loudspeaker position.
index | The index of the loudspeaker. |
azimuth | An azimuth value. In radian, between 0 and 2π. |
elevation | An azimuth value. In radian, between 0 and 2π. |
Definition at line 22 of file Decoder.cpp.