AudMgr.h

Classes

AudMgr -- (full description)

class AudMgr

Interface

Public Members
AudMgr ()
~AudMgr ()
AudSource *newSource (AudSrcType type, AudSound *sound = NULL, double volume = 1.0, double maxDistance = 700.0, AudChanType channel = AUD_LEFT_CHAN)
void deleteSource (AudSource *source)
void play (double trans[4][4])
void play (double x, double y, double z, double a1, double a2, double a3)
Private Members
void initAudio ()
long rateToALRate (long sampleRate)

Description

Member Description

AudMgr ()

Constructor: AudMgr

~AudMgr ()

Destructor: ~AudMgr

AudSource *newSource (AudSrcType type, AudSound *sound = NULL, double volume = 1.0, double maxDistance = 700.0, AudChanType channel = AUD_LEFT_CHAN)

Method: newSource Create a new source of sound. Specify the type (raw, convolved, interleaved), volume, maximum hearing distance, sound and channel to retrieve from sound (if convolved).

void deleteSource (AudSource *source)

Method: deleteSource Remove a source

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

Method: play Play all the sounds that are currently playing (will play for the set buffer length). The parameter here is a matrix determined by listener position that transforms from world coordinates (which the sounds are stored in, into listener coordinates).

void play (double x, double y, double z, double a1, double a2, double a3)

Method: play Same as above but pass in listener coordinates in world coordinates and specify elevation, azimuth and rotation of head.

void initAudio ()

long rateToALRate (long sampleRate)