1 #ifndef HB_SOUND_COMPONENT_H
2 #define HB_SOUND_COMPONENT_H
4 #include <SFML/Audio.hpp>
5 #include "../Core/GameObject.h"
6 #include "../Core/Transform.h"
7 #include "SoundManager.h"
8 #include "SoundBuffer.h"
38 Status getStatus()
const;
39 Time getPlayingOffset()
const;
40 void setPlayingOffset(
const Time& offset);
42 bool isLooping()
const;
43 void setPitch(
double pitch);
44 double getPitch()
const;
45 void setVolume(
double volume);
46 double getVolume()
const;
47 void setRelativeToListener(
bool relative);
48 bool isRelativeToListener()
const;
49 void setMinDistance(
double distance);
50 double getMinDistance()
const;
51 void setAttenuation(
double attenuation);
52 double getAttenuation()
const;
void update() override
Function called in the update step.
Definition: Box2DPlugin.h:6
Base class for implementing custom Components.
Definition: GameObject.h:57
Definition: SoundBuffer.h:13
Class for representing intervals of time.
Definition: Time.h:13
Definition: SoundComponent.h:16