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.
virtual void onSeek(Time timeOffset)
Change the current playing position in the stream source.
bool openFromFile(const std::string &filename)
Open a music from an audio file.
bool openFromStream(InputStream &stream)
Open a music from an audio file in a custom stream.
virtual Int64 onLoop()
Change the current playing position in the stream source to the loop offset.
TimeSpan getLoopPoints() const
Get the positions of the of the sound's looping sequence.
virtual bool onGetData(Chunk &data)
Request a new chunk of audio samples from the stream source.
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 AlResource.hpp:35
Structure defining a chunk of audio data to stream.
Definition SoundStream.hpp:54