Loading...
Searching...
No Matches
Sound.h
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.
413CSFML_AUDIO_API void sfSound_setEffectProcessor(sfSound* sound, sfEffectProcessor effectProcessor);
void(* sfEffectProcessor)(const float *inputFrames, unsigned int *inputFrameCount, float *outputFrames, unsigned int *outputFrameCount, unsigned int frameChannelCount)
Callable that is provided with sound data for processing.
Definition EffectProcessor.h:102
bool sfSound_isRelativeToListener(const sfSound *sound)
Tell whether a sound's position is relative to the listener or is absolute.
void sfSound_setCone(sfSound *sound, sfSoundSourceCone cone)
Set the cone properties of the sound in the audio scene.
void sfSound_setSpatializationEnabled(sfSound *sound, bool enabled)
Set whether spatialization of the sound is enabled.
void sfSound_setDirection(sfSound *sound, sfVector3f direction)
Set the 3D direction of the sound in the audio scene.
void sfSound_setPosition(sfSound *sound, sfVector3f position)
Set the 3D position of a sound in the audio scene.
sfSound * sfSound_copy(const sfSound *sound)
Create a new sound by copying an existing one.
sfSoundSourceCone sfSound_getCone(const sfSound *sound)
Get the cone properties of the sound in the audio scene.
void sfSound_setRelativeToListener(sfSound *sound, bool relative)
Make the sound's position relative to the listener or absolute.
void sfSound_setMaxGain(sfSound *sound, float gain)
Set the maximum gain of the sound.
bool sfSound_isSpatializationEnabled(const sfSound *sound)
Tell whether spatialization of the sound is enabled.
void sfSound_setAttenuation(sfSound *sound, float attenuation)
Set the attenuation factor of a sound.
void sfSound_setMinGain(sfSound *sound, float gain)
Set the minimum gain of the sound.
float sfSound_getMaxDistance(const sfSound *sound)
Get the maximum distance of the sound.
void sfSound_setVelocity(sfSound *sound, sfVector3f velocity)
Set the 3D velocity of the sound in the audio scene.
float sfSound_getMinDistance(const sfSound *sound)
Get the minimum distance of a sound.
void sfSound_setDopplerFactor(sfSound *sound, float factor)
Set the doppler factor of the sound.
sfTime sfSound_getPlayingOffset(const sfSound *sound)
Get the current playing position of a sound.
void sfSound_setBuffer(sfSound *sound, const sfSoundBuffer *buffer)
Set the source buffer containing the audio data to play.
sfVector3f sfSound_getVelocity(const sfSound *sound)
Get the 3D velocity of the sound in the audio scene.
float sfSound_getDopplerFactor(const sfSound *sound)
Get the doppler factor of the sound.
void sfSound_setEffectProcessor(sfSound *sound, sfEffectProcessor effectProcessor)
Set the effect processor to be applied to the sound.
void sfSound_setPlayingOffset(sfSound *sound, sfTime timeOffset)
Change the current playing position of a sound.
void sfSound_setMinDistance(sfSound *sound, float distance)
Set the minimum distance of a sound.
sfVector3f sfSound_getPosition(const sfSound *sound)
Get the 3D position of a sound in the audio scene.
float sfSound_getAttenuation(const sfSound *sound)
Get the attenuation factor of a sound.
const sfSoundBuffer * sfSound_getBuffer(const sfSound *sound)
Get the audio buffer attached to a sound.
sfSoundStatus sfSound_getStatus(const sfSound *sound)
Get the current status of a sound (stopped, paused, playing)
void sfSound_setMaxDistance(sfSound *sound, float distance)
Set the maximum distance of the sound.
void sfSound_setLooping(sfSound *sound, bool loop)
Set whether or not a sound should loop after reaching the end.
float sfSound_getDirectionalAttenuationFactor(const sfSound *sound)
Get the directional attenuation factor of the sound.
bool sfSound_isLooping(const sfSound *sound)
Tell whether or not a sound is in loop mode.
sfVector3f sfSound_getDirection(const sfSound *sound)
Get the 3D direction of the sound in the audio scene.
void sfSound_setDirectionalAttenuationFactor(sfSound *sound, float factor)
Set the directional attenuation factor of the sound.
Structure defining the properties of a directional cone.
Definition SoundSourceCone.h:39