4#include <SDL3/SDL_audio.h>
24 SDL_AudioSpec spec_{};
25 Uint32 audio_length_{0};
26 std::unique_ptr<Uint8,
decltype(&SDL_free)> audio_buffer_{
nullptr, &SDL_free};
Represents a SDL-specific resource. Inherits from the generic SoundResource class and contains SDL-sp...
Definition sdl_sound_resource.h:13
~SDLSoundResource() override=default
const Uint8 * audio_buffer() const
const SDL_AudioSpec & audio_spec() const
SDLSoundResource(const std::string &name, const std::string &file_path, SoundType type=SoundType::SDL_MIXER)
Represents a generic sound resource in the audio engine. This class serves as a base for specific sou...
Definition sound_resource.h:12
const std::string & name() const noexcept
const SoundType & type() const noexcept
const std::string & file_path() const noexcept
SoundType
Definition sound_type.h:5