mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
Reformat.
git-svn-id: svn://localhost/ardour2/branches/3.0@7967 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a52c992de5
commit
844b7d0f68
1 changed files with 23 additions and 23 deletions
|
|
@ -26,28 +26,28 @@
|
||||||
namespace ARDOUR {
|
namespace ARDOUR {
|
||||||
|
|
||||||
struct BBT_Time {
|
struct BBT_Time {
|
||||||
uint32_t bars;
|
uint32_t bars;
|
||||||
uint32_t beats;
|
uint32_t beats;
|
||||||
uint32_t ticks;
|
uint32_t ticks;
|
||||||
|
|
||||||
BBT_Time() {
|
BBT_Time() {
|
||||||
bars = 1;
|
bars = 1;
|
||||||
beats = 1;
|
beats = 1;
|
||||||
ticks = 0;
|
ticks = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
BBT_Time (uint32_t ba, uint32_t be, uint32_t t)
|
BBT_Time (uint32_t ba, uint32_t be, uint32_t t)
|
||||||
: bars (ba), beats (be), ticks (t) {}
|
: bars (ba), beats (be), ticks (t) {}
|
||||||
|
|
||||||
bool operator< (const BBT_Time& other) const {
|
bool operator< (const BBT_Time& other) const {
|
||||||
return bars < other.bars ||
|
return bars < other.bars ||
|
||||||
(bars == other.bars && beats < other.beats) ||
|
(bars == other.bars && beats < other.beats) ||
|
||||||
(bars == other.bars && beats == other.beats && ticks < other.ticks);
|
(bars == other.bars && beats == other.beats && ticks < other.ticks);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator== (const BBT_Time& other) const {
|
bool operator== (const BBT_Time& other) const {
|
||||||
return bars == other.bars && beats == other.beats && ticks == other.ticks;
|
return bars == other.bars && beats == other.beats && ticks == other.ticks;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue