13
0

Add explicit BBT_Offset print function (like timeline.h has)

This commit is contained in:
Robin Gareus 2022-09-28 18:46:58 +02:00
parent d1d125ba7b
commit 8b84a0c36f
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -250,6 +250,12 @@ struct LIBTEMPORAL_API BBT_Offset
operator bool() const {
return bars == 0 && beats == 0 && ticks == 0;
}
std::string str () const {
std::ostringstream os;
os << bars << '|' << beats << '|' << ticks;
return os.str ();
}
};
inline BBT_Offset LIBTEMPORAL_API bbt_delta (Temporal::BBT_Time const & a, Temporal::BBT_Time const & b) {