AudMgr.h
Classes
- AudMgr -- (full description)
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)
Member Description
Constructor: 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).
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.