Loading...
Searching...
No Matches
SoundStream.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.
172CSFML_AUDIO_API sfSoundChannel* sfSoundStream_getChannelMap(const sfSoundStream* soundStream, size_t* count);
227CSFML_AUDIO_API void sfSoundStream_setSpatializationEnabled(sfSoundStream* soundStream, bool enabled);
254CSFML_AUDIO_API void sfSoundStream_setDirection(sfSoundStream* soundStream, sfVector3f direction);
308CSFML_AUDIO_API void sfSoundStream_setDirectionalAttenuationFactor(sfSoundStream* soundStream, float factor);
323CSFML_AUDIO_API void sfSoundStream_setRelativeToListener(sfSoundStream* soundStream, bool relative);
399CSFML_AUDIO_API void sfSoundStream_setAttenuation(sfSoundStream* soundStream, float attenuation);
411CSFML_AUDIO_API void sfSoundStream_setPlayingOffset(sfSoundStream* soundStream, sfTime timeOffset);
525CSFML_AUDIO_API float sfSoundStream_getDirectionalAttenuationFactor(const sfSoundStream* soundStream);
608CSFML_AUDIO_API void sfSoundStream_setEffectProcessor(sfSoundStream* soundStream, 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
sfSoundChannel
Types of sound channels that can be read/written from sound buffers/files.
Definition SoundChannel.h:39
void sfSoundStream_setSpatializationEnabled(sfSoundStream *soundStream, bool enabled)
Set whether spatialization of the sound is enabled.
sfSoundSourceCone sfSoundStream_getCone(const sfSoundStream *soundStream)
Get the cone properties of the sound in the audio scene.
void sfSoundStream_setVelocity(sfSoundStream *soundStream, sfVector3f velocity)
Set the 3D velocity of the sound in the audio scene.
bool(* sfSoundStreamGetDataCallback)(sfSoundStreamChunk *, void *)
Type of the callback used to get a sound stream data.
Definition SoundStream.h:53
void sfSoundStream_setMinGain(sfSoundStream *soundStream, float gain)
Set the minimum gain of the sound.
void sfSoundStream_setPan(sfSoundStream *soundStream, float pan)
Set the pan of the sound.
void sfSoundStream_setMinDistance(sfSoundStream *soundStream, float distance)
Set the minimum distance of a sound stream.
sfVector3f sfSoundStream_getVelocity(const sfSoundStream *soundStream)
Get the 3D velocity of the sound in the audio scene.
void sfSoundStream_setDirection(sfSoundStream *soundStream, sfVector3f direction)
Set the 3D direction of the sound in the audio scene.
void sfSoundStream_setRelativeToListener(sfSoundStream *soundStream, bool relative)
Make a sound stream's position relative to the listener or absolute.
float sfSoundStream_getVolume(const sfSoundStream *soundStream)
Get the volume of a sound stream.
float sfSoundStream_getMinGain(const sfSoundStream *soundStream)
Get the minimum gain of the sound.
float sfSoundStream_getDopplerFactor(const sfSoundStream *soundStream)
Get the doppler factor of the sound.
void sfSoundStream_setPlayingOffset(sfSoundStream *soundStream, sfTime timeOffset)
Change the current playing position of a sound stream.
void sfSoundStream_setDopplerFactor(sfSoundStream *soundStream, float factor)
Set the doppler factor of the sound.
sfSoundStatus sfSoundStream_getStatus(const sfSoundStream *soundStream)
Get the current status of a sound stream (stopped, paused, playing)
sfSoundStream * sfSoundStream_create(sfSoundStreamGetDataCallback onGetData, sfSoundStreamSeekCallback onSeek, unsigned int channelCount, unsigned int sampleRate, sfSoundChannel *channelMapData, size_t channelMapSize, void *userData)
Create a new sound stream.
unsigned int sfSoundStream_getChannelCount(const sfSoundStream *soundStream)
Return the number of channels of a sound stream.
void sfSoundStream_setPosition(sfSoundStream *soundStream, sfVector3f position)
Set the 3D position of a sound stream in the audio scene.
float sfSoundStream_getMaxDistance(const sfSoundStream *soundStream)
Get the maximum distance of the sound.
void sfSoundStream_setCone(sfSoundStream *soundStream, sfSoundSourceCone cone)
Set the cone properties of the sound in the audio scene.
bool sfSoundStream_isLooping(const sfSoundStream *soundStream)
Tell whether or not a sound stream is in loop mode.
sfSoundChannel * sfSoundStream_getChannelMap(const sfSoundStream *soundStream, size_t *count)
Get the map of position in sample frame to sound channel.
bool sfSoundStream_isRelativeToListener(const sfSoundStream *soundStream)
Tell whether a sound stream's position is relative to the listener or is absolute.
void sfSoundStream_setLooping(sfSoundStream *soundStream, bool loop)
Set whether or not a sound stream should loop after reaching the end.
void sfSoundStream_setDirectionalAttenuationFactor(sfSoundStream *soundStream, float factor)
Set the directional attenuation factor of the sound.
void sfSoundStream_destroy(const sfSoundStream *soundStream)
Destroy a sound stream.
bool sfSoundStream_isSpatializationEnabled(const sfSoundStream *soundStream)
Tell whether spatialization of the sound is enabled.
float sfSoundStream_getMinDistance(const sfSoundStream *soundStream)
Get the minimum distance of a sound stream.
float sfSoundStream_getDirectionalAttenuationFactor(const sfSoundStream *soundStream)
Get the directional attenuation factor of the sound.
void sfSoundStream_setAttenuation(sfSoundStream *soundStream, float attenuation)
Set the attenuation factor of a sound stream.
void(* sfSoundStreamSeekCallback)(sfTime, void *)
Type of the callback used to seek in a sound stream.
Definition SoundStream.h:54
void sfSoundStream_play(sfSoundStream *soundStream)
Start or resume playing a sound stream.
void sfSoundStream_setPitch(sfSoundStream *soundStream, float pitch)
Set the pitch of a sound stream.
sfVector3f sfSoundStream_getPosition(const sfSoundStream *soundStream)
Get the 3D position of a sound stream in the audio scene.
void sfSoundStream_setVolume(sfSoundStream *soundStream, float volume)
Set the volume of a sound stream.
unsigned int sfSoundStream_getSampleRate(const sfSoundStream *soundStream)
Get the sample rate of a sound stream.
void sfSoundStream_setMaxGain(sfSoundStream *soundStream, float gain)
Set the maximum gain of the sound.
float sfSoundStream_getPitch(const sfSoundStream *soundStream)
Get the pitch of a sound stream.
float sfSoundStream_getPan(const sfSoundStream *soundStream)
Get the pan of the sound.
sfVector3f sfSoundStream_getDirection(const sfSoundStream *soundStream)
Get the 3D direction of the sound in the audio scene.
void sfSoundStream_setEffectProcessor(sfSoundStream *soundStream, sfEffectProcessor effectProcessor)
Set the effect processor to be applied to the sound.
void sfSoundStream_setMaxDistance(sfSoundStream *soundStream, float distance)
Set the maximum distance of the sound.
sfTime sfSoundStream_getPlayingOffset(const sfSoundStream *soundStream)
Get the current playing position of a sound stream.
float sfSoundStream_getAttenuation(const sfSoundStream *soundStream)
Get the attenuation factor of a sound stream.
float sfSoundStream_getMaxGain(const sfSoundStream *soundStream)
Get the maximum gain of the sound.
Structure defining the properties of a directional cone.
Definition SoundSourceCone.h:39