Update for 2.5.0

This commit is contained in:
spacechase0 committed 2018-06-05 14:05:52 -04:00
1 parent 75f95202b7
commit 7ef69e3b1c
40 files changed
+1327 -24

No files matched your search

+23
View File
@@ -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)
{