Mercurial > hg > svcore
comparison base/RealTime.h @ 247:21b9b25bff48
* More useful status bar text -- show the current play time and the extents of
the visible area
* Add update-i18n.sh to update the i18n/ts and qm files -- I can't get qmake
to do the right thing now that the project file has been split up into
several project files
* Fix missing Q_OBJECTs, etc, reported by lupdate
* Update Russian translation from AlexandrE
author | Chris Cannam |
---|---|
date | Wed, 07 Mar 2007 17:07:02 +0000 |
parents | 146eb9e35baa |
children | d7c41483af8f 94fc0591ea43 |
comparison
equal
deleted
inserted
replaced
246:d7eeffbb8aaf | 247:21b9b25bff48 |
---|---|
109 // Return a user-readable string to the nearest millisecond | 109 // Return a user-readable string to the nearest millisecond |
110 // in a form like HH:MM:SS.mmm | 110 // in a form like HH:MM:SS.mmm |
111 // | 111 // |
112 std::string toText(bool fixedDp = false) const; | 112 std::string toText(bool fixedDp = false) const; |
113 | 113 |
114 // Return a user-readable string to the nearest second in a form | |
115 // like "6s" (for less than a minute) or "2:21" (for more). | |
116 // | |
117 std::string toSecText() const; | |
118 | |
114 // Convenience functions for handling sample frames | 119 // Convenience functions for handling sample frames |
115 // | 120 // |
116 static long realTime2Frame(const RealTime &r, unsigned int sampleRate); | 121 static long realTime2Frame(const RealTime &r, unsigned int sampleRate); |
117 static RealTime frame2RealTime(long frame, unsigned int sampleRate); | 122 static RealTime frame2RealTime(long frame, unsigned int sampleRate); |
118 | 123 |