15 class SPARK_AUDIO_EXPORT
Sound final
18 static const std::vector<std::string_view> supportedExtensions;
27 explicit Sound(
const std::filesystem::path& file);
59 [[nodiscard]]
bool loop()
const;
65 [[nodiscard]]
float volume()
const;
71 [[nodiscard]]
float pitch()
const;
77 [[nodiscard]]
bool isPlaying()
const;
83 void setLoop(
bool loop);
89 void setVolume(
float volume);
95 void setPitch(
float pitch);
98 sf::SoundBuffer m_buffer;