25 #ifndef SFML_MUSIC_HPP 26 #define SFML_MUSIC_HPP 31 #include <SFML/Audio/SoundStream.hpp> 58 explicit Music(std::size_t BufferSize = 44100);
74 bool OpenFromFile(
const std::string& Filename);
85 bool OpenFromMemory(
const char* Data, std::size_t SizeInBytes);
93 float GetDuration()
const;
101 virtual bool OnStart();
107 virtual bool OnGetData(
Chunk& Data);
112 priv::SoundFile* myFile;
114 std::vector<Int16> mySamples;
120 #endif // SFML_MUSIC_HPP Music defines a big sound played using streaming, so usually what we call a music :) ...
SoundStream is a streamed sound, ie samples are acquired while the sound is playing.
Structure defining a chunk of audio data to stream.