AudSource.h

Classes

AudSource -- (full description)

class AudSource

Interface

Public Members
AudSource ()
virtual ~AudSource ()
void state (AudStateType newState)
void sound (AudSound *newSound)
AudSound *sound () const
void reverb (AudSound *newReverb)
void position (double x, double y, double z)
void listener (double trans[4][4])
void listener (double lx, double ly, double lz, double sinx, double cosx, double siny, double cosy, double sinz, double cosz)
void volume (double newVolume)
void maxDistance (double newMaxDistance)
virtual void operator>> (short *sample) = 0

Description

Member Description

AudSource ()

Constructor: AudSource

virtual ~AudSource ()

Destructor: ~AudSource

void state (AudStateType newState)

Method: state Set the state of the source to playing, repeating or not playing.

void sound (AudSound *newSound)

Method: sound Set the sound for the source.

AudSound *sound () const

Method: sound Get the sound of the source.

void reverb (AudSound *newReverb)

Method: reverb Specify the reverb sound of the source. This sound will be played at a constant level while the direct sound is mixed in in larger intensities as the listener approaches the source.

void position (double x, double y, double z)

Method: position Set the position of the sound source.

void listener (double trans[4][4])

Method: listener Specify listener position by passing matrix to convolve to listener coordinates.

void listener (double lx, double ly, double lz, double sinx, double cosx, double siny, double cosy, double sinz, double cosz)

Method: listener Specify listener position in listener coordinates and rotation angles.

void volume (double newVolume)

Method: volume Specify volume of sound at this source

void maxDistance (double newMaxDistance)

Method: maxDistance Specify maximum distance this source can be heard at.

virtual void operator>> (short *sample) = 0

Method: operator>> Output the sound produced by this sourcce at this given time.