23#include "audio/sfx_manager.hpp"
24#include "utils/no_copy.hpp"
48 SFX_UNKNOWN = -1, SFX_STOPPED = 0, SFX_PAUSED = 1, SFX_PLAYING = 2,
49 SFX_NOT_INITIALISED = 3
56 virtual bool isLooped() = 0;
57 virtual void updatePlayingSFX(
float dt) = 0;
58 virtual void setPosition(
const Vec3 &p) = 0;
59 virtual void reallySetPosition(
const Vec3 &p) = 0;
60 virtual void setSpeedPosition(
float factor,
62 virtual void reallySetSpeedPosition(
float f,
64 virtual void setLoop(
bool status) = 0;
65 virtual void reallySetLoop(
bool status) = 0;
66 virtual void play() = 0;
67 virtual void reallyPlayNow(
SFXBuffer* buffer = NULL) = 0;
68 virtual void play(
const Vec3 &xyz,
SFXBuffer* buffer = NULL) = 0;
69 virtual void reallyPlayNow(
const Vec3 &xyz,
SFXBuffer* buffer = NULL) = 0;
70 virtual void stop() = 0;
71 virtual void reallyStopNow() = 0;
72 virtual void pause() = 0;
73 virtual void reallyPauseNow() = 0;
74 virtual void resume() = 0;
75 virtual void reallyResumeNow() = 0;
76 virtual void deleteSFX() = 0;
77 virtual void setSpeed(
float factor) = 0;
78 virtual void reallySetSpeed(
float factor) = 0;
79 virtual void setVolume(
float gain) = 0;
80 virtual void reallySetVolume(
float gain) = 0;
81 virtual void setMasterVolume(
float gain) = 0;
82 virtual void reallySetMasterVolumeNow(
float gain) = 0;
83 virtual void onSoundEnabledBack() = 0;
84 virtual void setRolloff(
float rolloff) = 0;
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
The base class for sound effects.
Definition: sfx_base.hpp:43
virtual bool init()=0
Late creation, if SFX was initially disabled.
SFXStatus
Status of a sound effect.
Definition: sfx_base.hpp:47
The buffer (data) for one kind of sound effects.
Definition: sfx_buffer.hpp:44
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35