antara::gaming::sfml

antara::gaming::sfml::audio_system

class audio_system : public antara::gaming::ecs::system<audio_system>

This class allows the customization and play of audio.

Public Functions

audio_system(entt::registry &registry)

Parameters
  • registry: The entity_registry is provided to the system when it is created.

void update()

This function destroys and cleans up the sounds which are completed playing.

antara::gaming::sfml::component_sound

struct component_sound

This struct contains the sound and attributes of it such as volume.

Public Members

sf::Sound sound

This object is SFML’s Sound instance which contains the sound data.