31#include <SFML/Audio/SoundStream.hpp>
58 explicit Music(std::size_t BufferSize = 44100);
101 virtual bool OnStart();
107 virtual bool OnGetData(
Chunk& Data);
112 priv::SoundFile* myFile;
114 std::vector<Int16> mySamples;
bool OpenFromMemory(const char *Data, std::size_t SizeInBytes)
Open a music file from memory (doesn't play it – call Play() for that).
Music(std::size_t BufferSize=44100)
Construct the music with a buffer size.
bool OpenFromFile(const std::string &Filename)
Open a music file (doesn't play it – call Play() for that).
float GetDuration() const
Get the music duration.
SoundStream()
Default constructor.
Structure defining a chunk of audio data to stream.