![]() |
Public API Reference |
#include <renderer.h>
Inheritance diagram for iSoundRender:
Public Methods | |
virtual void | SetVolume (float vol)=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 csPtr< iSoundHandle > | RegisterSound (iSoundData *)=0 |
Register a sound. More... | |
virtual void | UnregisterSound (iSoundHandle *)=0 |
Unregister a sound. More... | |
virtual iSoundListener * | GetListener ()=0 |
Get the global Listener object. More... | |
virtual void | MixingFunction ()=0 |
Internal use : mixing function (needed if your renderer uses a driver). More... |
Loading itself is NOT done through this interface.
Sounds may be played as non-3d directly with PlaySound(). If you want more control (for example, stop the sound at any time) or if you want 3d sound you have to create a sound source. Sources can be 3d or non-3d, where non-3d sources simply ignore the position and velocity control methods of iSoundSource.
Before you can play a sound, you must first register it and get a sound handle.
Definition at line 45 of file renderer.h.
|
Get the global Listener object.
|
|
Get Volume (range from 0.0 to 1.0).
|
|
Internal use : mixing function (needed if your renderer uses a driver).
|
|
Register a sound.
|
|
Set Volume (range from 0.0 to 1.0).
|
|
Unregister a sound.
|