mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 22:55:44 +01:00
Add explicit BBT_Offset print function (like timeline.h has)
This commit is contained in:
parent
d1d125ba7b
commit
8b84a0c36f
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue