25 #ifndef SFML_SOUNDSTREAM_H
26 #define SFML_SOUNDSTREAM_H
66 unsigned int channelCount,
67 unsigned int sampleRate,
347 #endif // SFML_SOUNDSTREAM_H
3-component vector of floats
CSFML_AUDIO_API float sfSoundStream_getPitch(const sfSoundStream *soundStream)
Get the pitch of a sound stream.
CSFML_AUDIO_API void sfSoundStream_setLoop(sfSoundStream *soundStream, sfBool loop)
Set whether or not a sound stream should loop after reaching the end.
CSFML_AUDIO_API sfSoundStream * sfSoundStream_create(sfSoundStreamGetDataCallback onGetData, sfSoundStreamSeekCallback onSeek, unsigned int channelCount, unsigned int sampleRate, void *userData)
Create a new sound stream.
CSFML_AUDIO_API void sfSoundStream_setVolume(sfSoundStream *soundStream, float volume)
Set the volume of a sound stream.
CSFML_AUDIO_API unsigned int sfSoundStream_getSampleRate(const sfSoundStream *soundStream)
Get the sample rate of a sound stream.
CSFML_AUDIO_API float sfSoundStream_getAttenuation(const sfSoundStream *soundStream)
Get the attenuation factor of a sound stream.
CSFML_AUDIO_API void sfSoundStream_play(sfSoundStream *soundStream)
Start or resume playing a sound stream.
CSFML_AUDIO_API void sfSoundStream_setPitch(sfSoundStream *soundStream, float pitch)
Set the pitch of a sound stream.
CSFML_AUDIO_API void sfSoundStream_setAttenuation(sfSoundStream *soundStream, float attenuation)
Set the attenuation factor of a sound stream.
CSFML_AUDIO_API sfBool sfSoundStream_getLoop(const sfSoundStream *soundStream)
Tell whether or not a sound stream is in loop mode.
CSFML_AUDIO_API void sfSoundStream_stop(sfSoundStream *soundStream)
Stop playing a sound stream.
CSFML_AUDIO_API float sfSoundStream_getVolume(const sfSoundStream *soundStream)
Get the volume of a sound stream.
CSFML_AUDIO_API sfSoundStatus sfSoundStream_getStatus(const sfSoundStream *soundStream)
Get the current status of a sound stream (stopped, paused, playing)
sfInt16 * samples
Pointer to the audio samples.
sfSoundStatus
Enumeration of statuses for sounds and musics.
CSFML_AUDIO_API void sfSoundStream_setMinDistance(sfSoundStream *soundStream, float distance)
Set the minimum distance of a sound stream.
CSFML_AUDIO_API void sfSoundStream_destroy(sfSoundStream *soundStream)
Destroy a sound stream.
sfBool(* sfSoundStreamGetDataCallback)(sfSoundStreamChunk *, void *)
Type of the callback used to get a sound stream data.
CSFML_AUDIO_API sfBool sfSoundStream_isRelativeToListener(const sfSoundStream *soundStream)
Tell whether a sound stream's position is relative to the listener or is absolute.
CSFML_AUDIO_API void sfSoundStream_pause(sfSoundStream *soundStream)
Pause a sound stream.
CSFML_AUDIO_API void sfSoundStream_setRelativeToListener(sfSoundStream *soundStream, sfBool relative)
Make a sound stream's position relative to the listener or absolute.
CSFML_AUDIO_API unsigned int sfSoundStream_getChannelCount(const sfSoundStream *soundStream)
Return the number of channels of a sound stream.
defines the data to fill by the OnGetData callback
CSFML_AUDIO_API void sfSoundStream_setPosition(sfSoundStream *soundStream, sfVector3f position)
Set the 3D position of a sound stream in the audio scene.
CSFML_AUDIO_API void sfSoundStream_setPlayingOffset(sfSoundStream *soundStream, sfTime timeOffset)
Change the current playing position of a sound stream.
unsigned int sampleCount
Number of samples pointed by Samples.
void(* sfSoundStreamSeekCallback)(sfTime, void *)
Type of the callback used to seek in a sound stream.
CSFML_AUDIO_API float sfSoundStream_getMinDistance(const sfSoundStream *soundStream)
Get the minimum distance of a sound stream.
CSFML_AUDIO_API sfTime sfSoundStream_getPlayingOffset(const sfSoundStream *soundStream)
Get the current playing position of a sound stream.
struct sfSoundStream sfSoundStream
CSFML_AUDIO_API sfVector3f sfSoundStream_getPosition(const sfSoundStream *soundStream)
Get the 3D position of a sound stream in the audio scene.