#include <source.h>
Inheritance diagram for iSoundSource:

Public Methods | |
| virtual void | Play (unsigned long playMethod=0)=0 |
| Play the sound. PlayMethod can be set to any combination of SOUND_*. | |
| virtual void | Stop ()=0 |
| Stop the sound. | |
| virtual void | SetVolume (float volume)=0 |
| Set volume. | |
| virtual float | GetVolume ()=0 |
| Get volume. | |
| virtual void | SetFrequencyFactor (float factor)=0 |
| Set frequency factor : 1 = normal, >1 faster, 0-1 slower. | |
| virtual float | GetFrequencyFactor ()=0 |
| Get frequency factor. | |
| virtual int | GetMode3D ()=0 |
| return 3d mode. | |
| virtual void | SetMode3D (int m)=0 |
| set 3d mode. | |
| virtual void | SetPosition (csVector3 pos)=0 |
| set position of this source. | |
| virtual csVector3 | GetPosition ()=0 |
| get position of this source. | |
| virtual void | SetVelocity (csVector3 spd)=0 |
| set velocity of this source. | |
| virtual csVector3 | GetVelocity ()=0 |
| get velocity of this source. | |
It can be a non-3d source, in which case it plays the sound as it was recorded, or a 3d source, in which case it represents an object in 3d space and adjusts L/R volume for 3d sound.