13#ifndef SFMLAUDIO_MODULE_HPP
14#define SFMLAUDIO_MODULE_HPP
16#include "IAudioModule.hpp"
32 const char *
type()
const override {
return IAudioModule::contract; }
33 const char *
name()
const override {
return "sfml"; }
52 audio::ISound *
createSound(audio::ISoundBuffer *buffer)
override {
sfml has no explicit audio device init/close step (unlike raylib), nothing to do at construction/dest...
Definition SfmlAudioModule.hpp:26
const char * name() const override
Definition SfmlAudioModule.hpp:33
void deleteMusic(audio::IMusic *music) override
Definition SfmlAudioModule.hpp:39
void deleteSoundBuffer(audio::ISoundBuffer *buffer) override
Definition SfmlAudioModule.hpp:47
~SfmlAudioModule()=default
audio::ISoundBuffer * createSoundBuffer(std::string path) override
Definition SfmlAudioModule.hpp:44
const char * type() const override
Definition SfmlAudioModule.hpp:32
void deleteSound(audio::ISound *sound) override
Definition SfmlAudioModule.hpp:55
SfmlAudioModule()=default
audio::IMusic * createMusic(std::string path) override
Definition SfmlAudioModule.hpp:36
audio::ISound * createSound(audio::ISoundBuffer *buffer) override
Definition SfmlAudioModule.hpp:52
sfml music stream.
Definition SfmlMusic.hpp:28
Sfml SoundBuffer class - owns the loaded samples. SfmlSound only references it (sf::Sound itself alre...
Definition SfmlSoundBuffer.hpp:28
Sfml Sound class - references a SfmlSoundBuffer, does not own it. Deleting the sound never touches th...
Definition SfmlSound.hpp:27