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.
203CSFML_AUDIO_API void sfSoundStream_setRelativeToListener(sfSoundStream* soundStream, sfBool relative);
237CSFML_AUDIO_API void sfSoundStream_setAttenuation(sfSoundStream* soundStream, float attenuation);
249CSFML_AUDIO_API void sfSoundStream_setPlayingOffset(sfSoundStream* soundStream, sfTime timeOffset);
void sfSoundStream_setMinDistance(sfSoundStream *soundStream, float distance)
Set the minimum distance of a sound stream.
float sfSoundStream_getVolume(const sfSoundStream *soundStream)
Get the volume of a sound stream.
void sfSoundStream_setPlayingOffset(sfSoundStream *soundStream, sfTime timeOffset)
Change the current playing position of a sound stream.
sfBool sfSoundStream_isRelativeToListener(const sfSoundStream *soundStream)
Tell whether a sound stream's position is relative to the listener or is absolute.
sfSoundStream * sfSoundStream_create(sfSoundStreamGetDataCallback onGetData, sfSoundStreamSeekCallback onSeek, unsigned int channelCount, unsigned int sampleRate, void *userData)
Create a new sound stream.
sfSoundStatus sfSoundStream_getStatus(const sfSoundStream *soundStream)
Get the current status of a sound stream (stopped, paused, playing)
sfBool(* sfSoundStreamGetDataCallback)(sfSoundStreamChunk *, void *)
Type of the callback used to get a sound stream data.
Definition SoundStream.h:48
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_getMinDistance(const sfSoundStream *soundStream)
Get the minimum distance of a sound stream.
sfBool sfSoundStream_getLoop(const sfSoundStream *soundStream)
Tell whether or not a sound stream is in loop mode.
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:49
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.
float sfSoundStream_getPitch(const sfSoundStream *soundStream)
Get the pitch of a sound stream.
void sfSoundStream_setLoop(sfSoundStream *soundStream, sfBool loop)
Set whether or not a sound stream should loop after reaching the end.
void sfSoundStream_setRelativeToListener(sfSoundStream *soundStream, sfBool relative)
Make a sound stream's position relative to the listener or absolute.
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.