22 #ifndef GRIM_SOUNDTRACK_H 23 #define GRIM_SOUNDTRACK_H 25 #include "audio/mixer.h" 26 #include "audio/timestamp.h" 28 #include "math/vector3d.h" 58 DisposeAfterUse::Flag _disposeAfterPlaying;
72 virtual bool isPlaying() = 0;
77 void fadeIn() { _fadeMode = FadeIn; }
78 void fadeOut() { _fadeMode = FadeOut; }
79 void setFadeMode(FadeMode fadeMode) { _fadeMode = fadeMode; }
80 void setFade(
float fade);
81 float getFade()
const {
return _fade; }
82 FadeMode getFadeMode()
const {
return _fadeMode; }
83 void setBalance(
int balance);
84 void setVolume(
int volume);
85 void setPosition(
bool positioned,
const Math::Vector3d &pos = Math::Vector3d());
86 void updatePosition();
87 void setSync(
int sync) { _sync = sync; }
88 int getEffectiveVolume();
89 int getVolume()
const {
return _volume; }
90 int getBalance()
const {
return _balance; }
91 int getSync()
const {
return _sync; }
95 virtual bool hasLooped() {
return false; }
96 virtual void setLooping(
bool looping) { }
97 virtual bool isLooping()
const {
return false; }
98 bool isPaused()
const {
return _paused; }
99 bool isPositioned()
const {
return _positioned; }
100 Math::Vector3d getWorldPos()
const {
return _pos; }
Definition: timestamp.h:83
SoundType
Definition: mixer.h:62
Definition: algorithm.h:29
Definition: audiostream.h:50