Allolib
1.0
C++ Components For Interactive Multimedia
|
Adjust the gain of speakers based on distance. More...
Public Member Functions | |
void | configure (Speakers layout, double expon=2.0) |
void | processGains (AudioIOData &io) |
Public Attributes | |
std::vector< float > | mGains |
Speakers | mLayout |
Adjust the gain of speakers based on distance.
The function to determine gains is: std::pow(speaker.radius, expon) / std::pow(min_distance, expon);
where min_distance is the closest speaker distance. This way, the closest loudspeaker reatins 1.0 gain.
Definition at line 20 of file al_SpeakerAdjustment.hpp.