Loading...
Searching...
No Matches
Music.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
void onSeek(Time timeOffset) override
Change the current playing position in the stream source.
std::optional< std::uint64_t > onLoop() override
Change the current playing position in the stream source to the loop offset.
bool openFromStream(InputStream &stream)
Open a music from an audio file in a custom stream.
bool onGetData(Chunk &data) override
Request a new chunk of audio samples from the stream source.
bool openFromFile(const std::filesystem::path &filename)
Open a music from an audio file.
TimeSpan getLoopPoints() const
Get the positions of the of the sound's looping sequence.
Music(const void *data, std::size_t sizeInBytes)
Construct a music from an audio file in memory.
void setLoopPoints(TimeSpan timePoints)
Sets the beginning and duration of the sound's looping sequence using sf::Time
bool openFromMemory(const void *data, std::size_t sizeInBytes)
Open a music from an audio file in memory.
Definition AudioResource.hpp:36
Structure defining a chunk of audio data to stream.
Definition SoundStream.hpp:59