Loading...
Searching...
No Matches
SoundSource.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
void setPosition(const Vector3f &position)
Set the 3D position of the sound in the audio scene.
void setDopplerFactor(float factor)
Set the doppler factor of the sound.
Vector3f getDirection() const
Get the 3D direction of the sound in the audio scene.
void setVelocity(const Vector3f &velocity)
Set the 3D velocity of the sound in the audio scene.
void setMaxDistance(float distance)
Set the maximum distance of the sound.
void setSpatializationEnabled(bool enabled)
Set whether spatialization of the sound is enabled.
void setMinDistance(float distance)
Set the minimum distance of the sound.
bool isSpatializationEnabled() const
Tell whether spatialization of the sound is enabled.
Vector3f getPosition() const
Get the 3D position of the sound in the audio scene.
virtual void setEffectProcessor(EffectProcessor effectProcessor)
Set the effect processor to be applied to the sound.
Vector3f getVelocity() const
Get the 3D velocity of the sound in the audio scene.
float getDirectionalAttenuationFactor() const
Get the directional attenuation factor of the sound.
void setAttenuation(float attenuation)
Set the attenuation factor of the sound.
std::function< void(const float *inputFrames, unsigned int &inputFrameCount, float *outputFrames, unsigned int &outputFrameCount, unsigned int frameChannelCount)> EffectProcessor
Callable that is provided with sound data for processing.
Definition SoundSource.hpp:154
virtual Status getStatus() const =0
Get the current status of the sound (stopped, paused, playing)
void setCone(const Cone &cone)
Set the cone properties of the sound in the audio scene.
void setDirection(const Vector3f &direction)
Set the 3D direction of the sound in the audio scene.
void setRelativeToListener(bool relative)
Make the sound's position relative to the listener or absolute.
bool isRelativeToListener() const
Tell whether the sound's position is relative to the listener or is absolute.
Cone getCone() const
Get the cone properties of the sound in the audio scene.
void setDirectionalAttenuationFactor(float factor)
Set the directional attenuation factor of the sound.
Definition AudioResource.hpp:36
Structure defining the properties of a directional cone.
Definition SoundSource.hpp:73