24 #ifndef _SOUND_SYSTEM_H_ 25 #define _SOUND_SYSTEM_H_ 28 #include <iutil/objreg.h> 54 bool CreateStream (csRef<iSndSysData> &snddata,
int loop,
int type,
55 csRef<iSndSysStream> &sndstream);
69 csRef<iSndSysSource> &sndsource);
87 csRef<iSndSysSource3D> &sndsource3d,
88 float mindist,
float maxdist, csVector3 pos);
98 csRef<iSndSysSource3DDirectionalSimple> &sndsourcedir,
99 csVector3 direction,
float rad);
110 csRef<iSndSysRenderer> sndrenderer;
111 csRef<iSndSysListener> listener;
void CreateDirectional3dSource(csRef< iSndSysSource3D > &sndsource3d, csRef< iSndSysSource3DDirectionalSimple > &sndsourcedir, csVector3 direction, float rad)
Creates a directional source on top of a 3d 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.
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 Create3dSource(csRef< iSndSysSource > &sndsource, csRef< iSndSysSource3D > &sndsource3d, float mindist, float maxdist, csVector3 pos)
Creates a 3d Source on top of a 2d source.
void UpdateListener(csVector3 v, csVector3 f, csVector3 t)
Updates listener position.
This is an Interface Class to the Crystalspace Soundrenderer.