Chrono: add SignedSongTime::FromS(unsigned)

This commit is contained in:
Max Kellermann 2014-08-29 12:34:31 +02:00
parent 3ac1475262
commit 9fcaff749f

View File

@ -125,6 +125,10 @@ public:
return SignedSongTime(rep(s) * 1000);
}
static constexpr SignedSongTime FromS(unsigned s) {
return SignedSongTime(rep(s) * 1000);
}
static constexpr SignedSongTime FromS(float s) {
return SignedSongTime(rep(s * 1000));
}