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

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

Public Member Functions

 Speaker (unsigned int deviceChan=0, float az=0.f, float el=0.f, int group=0, float radius=1.f, float gain=1.f)
 
template<class T >
SpeakerposCart (T *xyz)
 Get position in Cartesian coordinate (in audio space)
 
void posCart2 (Vec3d xyz)
 
Vec3d vec () const
 Get position as Cartesian coordinate (in audio space)
 
Vec3d vecGraphics () const
 Get position as Cartesian coordinate (in graphics space)
 

Static Public Member Functions

static double toRad (double d)
 
static float toRad (float d)
 

Public Attributes

unsigned int deviceChannel
 Index in the output device channels array.
 
float azimuth
 Angle from forward to right vector (i.e. CW)
 
float elevation
 
int group
 Group identifier.
 
float radius
 Distance from center of listening space.
 
float gain
 Gain of speaker.
 

Detailed Description

Spatial definition of a speaker in a listening space

Definition at line 58 of file al_Speaker.hpp.

Constructor & Destructor Documentation

◆ Speaker()

al::Speaker::Speaker ( unsigned int  deviceChan = 0,
float  az = 0.f,
float  el = 0.f,
int  group = 0,
float  radius = 1.f,
float  gain = 1.f 
)
Parameters
[in]deviceChanaudio device output channel
[in]azazimuth of speaker
[in]elelevation of speaker
[in]radiusradius of speaker
[in]gaingain of speaker

Member Data Documentation

◆ elevation

float al::Speaker::elevation

Angle from forward-right plane to up vector (0 is "horizon")

Definition at line 62 of file al_Speaker.hpp.


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