|
Allolib
1.0
C++ Components For Interactive Multimedia
|
Public Member Functions | |
| Spatializer (const Speakers &sl) | |
| virtual void | compile () |
| virtual void | prepare (AudioIOData &io) |
| virtual void | renderBuffer (AudioIOData &io, const Pose &listeningPose, const float *samples, const unsigned int &numFrames)=0 |
| Render audio buffer in position. | |
| virtual void | renderSample (AudioIOData &io, const Pose &listeningPose, const float &sample, const unsigned int &frameIndex)=0 |
| Render audio sample in position. | |
| virtual void | finalize (AudioIOData &io) |
| virtual void | print (std::ostream &stream=std::cout) |
| Print out information about spatializer. | |
| int | numSpeakers () const |
| Get number of speakers. | |
| virtual void | numFrames (unsigned int v) |
| Set number of frames. | |
Protected Attributes | |
| Speakers | mSpeakers |
| std::vector< float > | mBuffer |
| unsigned int | mNumFrames {0} |
Abstract class for all spatializers: Ambisonics, DBAP, VBAP, etc.
Definition at line 56 of file al_Spatializer.hpp.
| al::Spatializer::Spatializer | ( | const Speakers & | sl | ) |
| [in] | sl | A speaker layout to use |
|
inlinevirtual |
Perform any necessary updates when the speaker layout changes, ex. new speaker triplets for VBAP Must be called before any calls to prepare(), renderBuffer(), renderSample() or perform()
Reimplemented in al::Vbap, al::Lbap, and al::AmbisonicsSpatializer.
Definition at line 66 of file al_Spatializer.hpp.
|
inlinevirtual |
Called once per listener, after sources are rendered. ex. ambisonics decode
Reimplemented in al::AmbisonicsSpatializer.
Definition at line 84 of file al_Spatializer.hpp.
|
inlinevirtual |
Called once per listener, before sources are rendered. ex. zero ambisonics coefficients
Reimplemented in al::Lbap, and al::AmbisonicsSpatializer.
Definition at line 70 of file al_Spatializer.hpp.