24 #ifndef _SOUND_SYSTEM_H_    25 #define _SOUND_SYSTEM_H_    28 #include <iutil/objreg.h>    31 #define DEFAULT_LISTENER_ROLL_OFF 1.0    60     bool CreateStream(csRef<iSndSysData> &sndData, 
bool loop, 
int type,
    61                       csRef<iSndSysStream> &sndStream);
    76                       csRef<iSndSysSource> &sndSource);
    97                         csRef<iSndSysSource3D> &sndSource3D,
    98                         float minDist, 
float maxDist, csVector3 pos);
   110                                    csRef<iSndSysSource3DDirectionalSimple> &sndSourceDir,
   111                                    csVector3 direction, 
float rad);
   129     csRef<iSndSysRenderer> sndRenderer; 
   130     csRef<iSndSysListener> listener;    
 void Create3DSource(csRef< iSndSysSource > &sndSource, csRef< iSndSysSource3D > &sndSource3D, float minDist, float maxDist, csVector3 pos)
Creates a 3D source on top of a 2D source. 
 
void RemoveSource(csRef< iSndSysSource > &sndsource)
Removes a Source. 
 
bool CreateSource(csRef< iSndSysStream > &sndstream, csRef< iSndSysSource > &sndsource)
Create a Source associated to your Stream. 
 
bool Initialize(iObjectRegistry *objectReg)
initializes this object and tries to load the soundrenderer. 
 
csVector3 GetListenerPosition() const 
Gets the current listener's position. 
 
bool CreateStream(csRef< iSndSysData > &snddata, int loop, int type, csRef< iSndSysStream > &sndstream)
Creates a stream out of the given snddata. 
 
void RemoveStream(csRef< iSndSysStream > &sndstream)
Removes a stream. 
 
void UpdateListener(csVector3 v, csVector3 f, csVector3 t)
Updates listener position. 
 
void CreateDirectional3DSource(csRef< iSndSysSource3D > &sndSource3D, csRef< iSndSysSource3DDirectionalSimple > &sndSourceDir, csVector3 direction, float rad)
Creates a directional source on top of a 3D source. 
 
This is an Interface Class to the Crystalspace Soundrenderer.