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