25 #ifndef SFML_MUSIC_HPP
26 #define SFML_MUSIC_HPP
31 #include <SFML/Audio/Export.hpp>
32 #include <SFML/Audio/SoundStream.hpp>
33 #include <SFML/Audio/InputSoundFile.hpp>
34 #include <SFML/System/Mutex.hpp>
35 #include <SFML/System/Time.hpp>
79 bool openFromFile(
const std::string& filename);
101 bool openFromMemory(
const void* data, std::size_t sizeInBytes);
130 Time getDuration()
const;
145 virtual bool onGetData(
Chunk& data);
153 virtual void onSeek(
Time timeOffset);
168 std::vector<Int16> m_samples;
175 #endif // SFML_MUSIC_HPP
Structure defining a chunk of audio data to stream.
Blocks concurrent access to shared resources from multiple threads.
Abstract base class for streamed audio sources.
Streamed music played from an audio file.