1 #ifndef SOUND_INSTANCE_H
2 #define SOUND_INSTANCE_H
25 virtual void onStart()
override;
26 virtual bool onUpdate(
const double delta)
override;
29 virtual void onNotifyNow(std::shared_ptr<Events::Event> event)
override;
void setLooping(const bool looping)
bool isStopped() const noexcept
Base Class for all components.
Definition: component.h:20
virtual void onNotifyNow(std::shared_ptr< Events::Event > event) override
When receiving an event that is immediate, onNotifyNow is used. It acts as an interrupt to make sure ...
bool isPlaying() const noexcept
Definition: sound_instance.h:8
virtual bool onUpdate(const double delta) override
Called every engine loop.
virtual unsigned long long getValueForSorting() const noexceptoverride
Gets the value for sorting.
virtual void onDestroy() override
Called when the engine is shutting down.
bool isLooping() const noexcept
virtual ~SoundInstance()=default
virtual void handleQueuedEvent(std::shared_ptr< Events::Event > event) override
HandleQueuedEvent allows derived classes to define behaviour for when queuedEvents are received...
virtual void onStart() override
Called when the engine starts and when a new scene is loaded.