31 #include <SFML/Audio/Export.h>
32 #include <SFML/Audio/SoundStatus.h>
33 #include <SFML/Audio/Types.h>
34 #include <SFML/System/InputStream.h>
35 #include <SFML/System/Time.h>
36 #include <SFML/System/Vector3.h>
65 CSFML_AUDIO_API sfMusic* sfMusic_createFromFile(
const char* filename);
82 CSFML_AUDIO_API sfMusic* sfMusic_createFromMemory(
const void* data,
size_t sizeInBytes);
98 CSFML_AUDIO_API sfMusic* sfMusic_createFromStream(
sfInputStream* stream);
106 CSFML_AUDIO_API
void sfMusic_destroy(sfMusic* music);
120 CSFML_AUDIO_API
void sfMusic_setLoop(sfMusic* music, sfBool loop);
130 CSFML_AUDIO_API sfBool sfMusic_getLoop(
const sfMusic* music);
140 CSFML_AUDIO_API
sfTime sfMusic_getDuration(
const sfMusic* music);
157 CSFML_AUDIO_API
sfTimeSpan sfMusic_getLoopPoints(
const sfMusic* music);
179 CSFML_AUDIO_API
void sfMusic_setLoopPoints(sfMusic* music,
sfTimeSpan timePoints);
193 CSFML_AUDIO_API
void sfMusic_play(sfMusic* music);
204 CSFML_AUDIO_API
void sfMusic_pause(sfMusic* music);
216 CSFML_AUDIO_API
void sfMusic_stop(sfMusic* music);
228 CSFML_AUDIO_API
unsigned int sfMusic_getChannelCount(
const sfMusic* music);
241 CSFML_AUDIO_API
unsigned int sfMusic_getSampleRate(
const sfMusic* music);
251 CSFML_AUDIO_API sfSoundStatus sfMusic_getStatus(
const sfMusic* music);
261 CSFML_AUDIO_API
sfTime sfMusic_getPlayingOffset(
const sfMusic* music);
276 CSFML_AUDIO_API
void sfMusic_setPitch(sfMusic* music,
float pitch);
288 CSFML_AUDIO_API
void sfMusic_setVolume(sfMusic* music,
float volume);
301 CSFML_AUDIO_API
void sfMusic_setPosition(sfMusic* music,
sfVector3f position);
316 CSFML_AUDIO_API
void sfMusic_setRelativeToListener(sfMusic* music, sfBool relative);
332 CSFML_AUDIO_API
void sfMusic_setMinDistance(sfMusic* music,
float distance);
350 CSFML_AUDIO_API
void sfMusic_setAttenuation(sfMusic* music,
float attenuation);
362 CSFML_AUDIO_API
void sfMusic_setPlayingOffset(sfMusic* music,
sfTime timeOffset);
372 CSFML_AUDIO_API
float sfMusic_getPitch(
const sfMusic* music);
382 CSFML_AUDIO_API
float sfMusic_getVolume(
const sfMusic* music);
392 CSFML_AUDIO_API
sfVector3f sfMusic_getPosition(
const sfMusic* music);
403 CSFML_AUDIO_API sfBool sfMusic_isRelativeToListener(
const sfMusic* music);
413 CSFML_AUDIO_API
float sfMusic_getMinDistance(
const sfMusic* music);
423 CSFML_AUDIO_API
float sfMusic_getAttenuation(
const sfMusic* music);
426 #endif // SFML_MUSIC_H