4#include <SDL3/SDL_audio.h>
24 [[nodiscard]]
bool is_paused() const noexcept override;
28 std::unique_ptr<SDL_AudioStream, decltype(&SDL_DestroyAudioStream)> stream_{
29 nullptr, &SDL_DestroyAudioStream};
Represents a SDL-specific implementation of a sound instance. Inherits from the generic SoundInstance...
Definition sdl_sound_instance.h:12
bool is_finished() override
bool is_playing() const noexcept override
bool is_paused() const noexcept override
~SDLSoundInstance() override
SDLSoundInstance(std::shared_ptr< SoundResource > resource, float volume=1.0f)
Represents an instance of a generic sound within the audio system. The reason for separating SoundIns...
Definition sound_instance.h:14
const std::shared_ptr< SoundResource > & resource() const noexcept
float volume() const noexcept