USML
reverb_model Class Referenceabstract

Detailed Description

A reverberation model listens for interface collision callbacks from a wavefront.

Todo:
The reverb_model class is currently just a stub for future behaviors.

Member Function Documentation

virtual void collision ( unsigned  de,
unsigned  az,
double  time,
const wposition1 position,
const wvector1 ndirection,
double  speed,
const seq_vector frequencies,
const vector< double > &  amplitude,
const vector< double > &  phase 
)
pure virtual

React to the collision of a single ray with a reverberation surface.

Parameters
deD/E angle index number.
azAZ angle index number.
timeTime at which the collision occurs (sec)
positionLocation at which the collision occurs (sec)
ndirectionNormalized direction at the point of collision.
speedSpeed of sound at the point of collision.
frequenciesFrequencies over which to compute reverb. (Hz)
amplitudePropagation loss amplitude, at the point of collision. as a function of frequency.
phasePropagation loss phase at the point of collision. as a function of frequency.