25 #ifndef CPP3DS_SOUND_HPP
26 #define CPP3DS_SOUND_HPP
34 #include <cpp3ds/Audio/SoundSource.hpp>
35 #include <cpp3ds/System/Time.hpp>
176 bool getStateADPCM()
const;
178 void setStateADPCM(
bool enable);
232 #endif // CPP3DS_SOUND_HPP
void resetBuffer()
Reset the internal buffer of the sound.
void setLoop(bool loop)
Set whether or not the sound should loop after reaching the end.
Base class defining a sound's properties.
Time getPlayingOffset() const
Get the current playing position of the sound.
Status getStatus() const
Get the current status of the sound (stopped, paused, playing)
void stop()
stop playing the sound
void play()
Start or resume playing the sound.
Status
Enumeration of the sound source states.
Storage for audio samples defining a sound.
Regular sound that can be played in the audio environment.
bool getLoop() const
Tell whether or not the sound is in loop mode.
void pause()
Pause the sound.
void setBuffer(const SoundBuffer &buffer)
Set the source buffer containing the audio data to play.
Sound & operator=(const Sound &right)
Overload of assignment operator.
void setPlayingOffset(Time timeOffset)
Change the current playing position of the sound.
Sound()
Default constructor.
const SoundBuffer * getBuffer() const
Get the audio buffer attached to the sound.