aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-29 12:34:31 +0200
committerMax Kellermann <max@duempel.org>2014-08-29 12:50:41 +0200
commit9fcaff749f2325465feb423aaeeece1bcefa8c5f (patch)
tree6e8c538dc59262bae1ac45202b81a8d5432f1d3e
parent3ac1475262c2ef8f2a76aac371daac2d01bc2383 (diff)
downloadmpd-9fcaff749f2325465feb423aaeeece1bcefa8c5f.tar.gz
mpd-9fcaff749f2325465feb423aaeeece1bcefa8c5f.tar.xz
mpd-9fcaff749f2325465feb423aaeeece1bcefa8c5f.zip
Chrono: add SignedSongTime::FromS(unsigned)
-rw-r--r--src/Chrono.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Chrono.hxx b/src/Chrono.hxx
index e72975ea8..521e03c35 100644
--- a/src/Chrono.hxx
+++ b/src/Chrono.hxx
@@ -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));
}