Loading...
Searching...
No Matches
Music.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.
sfSoundStatus sfMusic_getStatus(const sfMusic *music)
Get the current status of a music (stopped, paused, playing)
sfTime sfMusic_getPlayingOffset(const sfMusic *music)
Get the current playing position of a music.
sfMusic * sfMusic_createFromStream(sfInputStream *stream)
Create a new music and load it from a custom stream.
sfVector3f sfMusic_getPosition(const sfMusic *music)
Get the 3D position of a music in the audio scene.
void sfMusic_setPlayingOffset(sfMusic *music, sfTime timeOffset)
Change the current playing position of a music.
unsigned int sfMusic_getChannelCount(const sfMusic *music)
Return the number of channels of a music.
void sfMusic_setRelativeToListener(sfMusic *music, sfBool relative)
Make a musics's position relative to the listener or absolute.
sfMusic * sfMusic_createFromMemory(const void *data, size_t sizeInBytes)
Create a new music and load it from a file in memory.
sfBool sfMusic_isRelativeToListener(const sfMusic *music)
Tell whether a music's position is relative to the listener or is absolute.
void sfMusic_setAttenuation(sfMusic *music, float attenuation)
Set the attenuation factor of a music.
void sfMusic_setLoopPoints(sfMusic *music, sfTimeSpan timePoints)
Sets the beginning and end of the sound's looping sequence using sf::Time.
void sfMusic_setLoop(sfMusic *music, sfBool loop)
Set whether or not a music should loop after reaching the end.
sfBool sfMusic_getLoop(const sfMusic *music)
Tell whether or not a music is in loop mode.
float sfMusic_getAttenuation(const sfMusic *music)
Get the attenuation factor of a music.
sfMusic * sfMusic_createFromFile(const char *filename)
Create a new music and load it from a file.
void sfMusic_setPosition(sfMusic *music, sfVector3f position)
Set the 3D position of a music in the audio scene.
sfTimeSpan sfMusic_getLoopPoints(const sfMusic *music)
Get the positions of the of the sound's looping sequence.
void sfMusic_setMinDistance(sfMusic *music, float distance)
Set the minimum distance of a music.
sfTime sfMusic_getDuration(const sfMusic *music)
Get the total duration of a music.
unsigned int sfMusic_getSampleRate(const sfMusic *music)
Get the sample rate of a music.
float sfMusic_getMinDistance(const sfMusic *music)
Get the minimum distance of a music.
Set of callbacks that allow users to define custom file streams.
Definition InputStream.h:45