mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 05:26:13 +01:00
Update for 2.5.0
This commit is contained in:
1 parent
75f95202b7
commit
7ef69e3b1c
40 files changed
+1327
-24
No files matched your search
@@ -107,6 +107,29 @@ sfTime sfMusic_getDuration(const sfMusic* music)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfTimeSpan sfMusic_getLoopPoints(const sfMusic* music)
|
||||
{
|
||||
sfTimeSpan timeSpan = {{0}, {0}};
|
||||
CSFML_CHECK_RETURN(music, timeSpan);
|
||||
|
||||
sf::Music::TimeSpan span = music->This.getLoopPoints();
|
||||
|
||||
timeSpan.offset.microseconds = span.offset.asMicroseconds();
|
||||
timeSpan.length.microseconds = span.length.asMicroseconds();
|
||||
|
||||
return timeSpan;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfMusic_setLoopPoints(sfMusic* music, sfTimeSpan timePoints)
|
||||
{
|
||||
CSFML_CALL(music, setLoopPoints(sf::Music::TimeSpan(sf::microseconds(timePoints.offset.microseconds),
|
||||
sf::microseconds(timePoints.length.microseconds))));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfMusic_play(sfMusic* music)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user