31#include <SFML/Audio/Export.hpp>
32#include <SFML/Audio/SoundSource.hpp>
33#include <SFML/System/Time.hpp>
Storage for audio samples defining a sound.
Base class defining a sound's properties.
Status
Enumeration of the sound source states.
Regular sound that can be played in the audio environment.
bool getLoop() const
Tell whether or not the sound is in loop mode.
void play()
Start or resume playing the sound.
Sound()
Default constructor.
Sound(const SoundBuffer &buffer)
Construct the sound with a buffer.
Status getStatus() const
Get the current status of the sound (stopped, paused, playing)
Time getPlayingOffset() const
Get the current playing position of the sound.
void pause()
Pause the sound.
const SoundBuffer * getBuffer() const
Get the audio buffer attached to the sound.
void setBuffer(const SoundBuffer &buffer)
Set the source buffer containing the audio data to play.
void stop()
stop playing the sound
void setPlayingOffset(Time timeOffset)
Change the current playing position of the sound.
void resetBuffer()
Reset the internal buffer of the sound.
Sound(const Sound ©)
Copy constructor.
void setLoop(bool loop)
Set whether or not the sound should loop after reaching the end.