25 #ifndef SFML_SOUNDSTREAM_HPP
26 #define SFML_SOUNDSTREAM_HPP
31 #include <SFML/Audio/Export.hpp>
32 #include <SFML/Audio/SoundSource.hpp>
33 #include <SFML/System/Thread.hpp>
34 #include <SFML/System/Time.hpp>
109 unsigned int getChannelCount()
const;
120 unsigned int getSampleRate()
const;
141 void setPlayingOffset(
Time timeOffset);
151 Time getPlayingOffset()
const;
166 void setLoop(
bool loop);
176 bool getLoop()
const;
202 void initialize(
unsigned int channelCount,
unsigned int sampleRate);
218 virtual bool onGetData(
Chunk& data) = 0;
229 virtual void onSeek(
Time timeOffset) = 0;
255 bool fillAndPushBuffer(
unsigned int bufferNum);
286 unsigned int m_buffers[BufferCount];
287 unsigned int m_channelCount;
288 unsigned int m_sampleRate;
291 Uint64 m_samplesProcessed;
292 bool m_endBuffers[BufferCount];
298 #endif // SFML_SOUNDSTREAM_HPP
Utility class to manipulate threads.
const Int16 * samples
Pointer to the audio samples.
Abstract base class for streamed audio sources.
Structure defining a chunk of audio data to stream.
Status
Enumeration of the sound source states.
Base class defining a sound's properties.
std::size_t sampleCount
Number of samples pointed by Samples.