Allolib  1.0
C++ Components For Interactive Multimedia
al::SpeakerDistanceGainAdjustmentProcessor Class Reference

This class is added for convenience to append it to AudioIO processing. More...

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/sound/al_SpeakerAdjustment.hpp>

Inheritance diagram for al::SpeakerDistanceGainAdjustmentProcessor:
al::AudioCallback al::SpeakerDistanceGainAdjustment

Public Member Functions

virtual void onAudioCB (AudioIOData &io)
 Callback.
 
void configure (Speakers layout, double expon=2.0)
 
void processGains (AudioIOData &io)
 

Public Attributes

std::vector< float > mGains
 
Speakers mLayout
 

Detailed Description

This class is added for convenience to append it to AudioIO processing.

You will want to use it like:

SpeakerDistanceGainAdjustmentProcessor gainAdjustment;
gainAdjustment.configure(speakerLayout, 2.0);
audioIO().append(gainAdjustment);

This will do the level processing after the AudioIO main callback function has been processed. This will keep your audio processing function clean of this optional post-processing

Definition at line 45 of file al_SpeakerAdjustment.hpp.


The documentation for this class was generated from the following file: