25 #ifndef SFML_SOUNDSOURCE_HPP 26 #define SFML_SOUNDSOURCE_HPP 31 #include <SFML/Audio/Export.hpp> 32 #include <SFML/Audio/AlResource.hpp> 33 #include <SFML/System/Vector3.hpp> 85 void setPitch(
float pitch);
98 void setVolume(
float volume);
114 void setPosition(
float x,
float y,
float z);
128 void setPosition(
const Vector3f& position);
144 void setRelativeToListener(
bool relative);
161 void setMinDistance(
float distance);
180 void setAttenuation(
float attenuation);
190 float getPitch()
const;
200 float getVolume()
const;
221 bool isRelativeToListener()
const;
231 float getMinDistance()
const;
241 float getAttenuation()
const;
263 virtual void play() = 0;
274 virtual void pause() = 0;
286 virtual void stop() = 0;
294 virtual Status getStatus()
const;
315 #endif // SFML_SOUNDSOURCE_HPP Base class for classes that require an OpenAL context.
Utility template class for manipulating 3-dimensional vectors.
unsigned int m_source
OpenAL source identifier.
Status
Enumeration of the sound source states.
Base class defining a sound's properties.