![]() |
Public API Reference |
#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_*. More... | |
virtual void | Stop ()=0 |
Stop the sound. More... | |
virtual void | SetVolume (float volume)=0 |
Set volume (range from 0.0 to 1.0). More... | |
virtual float | GetVolume ()=0 |
Get volume (range from 0.0 to 1.0). More... | |
virtual void | SetFrequencyFactor (float factor)=0 |
Set frequency factor : 1 = normal, >1 faster, 0-1 slower. More... | |
virtual float | GetFrequencyFactor ()=0 |
Get frequency factor. More... | |
virtual int | GetMode3D ()=0 |
return 3d mode. More... | |
virtual void | SetMode3D (int m)=0 |
set 3d mode. More... | |
virtual void | SetPosition (csVector3 pos)=0 |
set position of this source. More... | |
virtual csVector3 | GetPosition ()=0 |
get position of this source. More... | |
virtual void | SetVelocity (csVector3 spd)=0 |
set velocity of this source. More... | |
virtual csVector3 | GetVelocity ()=0 |
get velocity of this source. More... |
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.
Definition at line 50 of file source.h.
|
Get frequency factor.
|
|
return 3d mode.
|
|
get position of this source.
|
|
get velocity of this source.
|
|
Get volume (range from 0.0 to 1.0).
|
|
Play the sound. PlayMethod can be set to any combination of SOUND_*.
|
|
Set frequency factor : 1 = normal, >1 faster, 0-1 slower.
|
|
set 3d mode.
|
|
set position of this source.
|
|
set velocity of this source.
|
|
Set volume (range from 0.0 to 1.0).
|
|
Stop the sound.
|