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> 83 bool openFromFile(
const std::string& filename);
106 bool openFromMemory(
const void* data, std::size_t sizeInBytes);
135 Time getDuration()
const;
150 virtual bool onGetData(
Chunk& data);
158 virtual void onSeek(
Time timeOffset);
173 std::vector<Int16> m_samples;
180 #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.