[timing] Start the break-age.

48 compile time errors. This will be fun.
This commit is contained in:
Jason Felds
2011-07-27 22:20:52 -04:00
parent 93b3f71120
commit 4d4c0f5bd1
2 changed files with 30 additions and 66 deletions
+21 -13
View File
@@ -4,7 +4,8 @@
static const char *TimingSegmentTypeNames[] = {
"BPM",
"Stop/Delay", // TODO: separate when stops and delays are separate.
"Stop",
"Delay",
"Time Sig",
"Warp",
"Label",
@@ -332,25 +333,32 @@ void StopSegment::SetPause(const float i)
this->pauseSeconds = i;
}
bool StopSegment::GetDelay() const
{
return this->isDelay;
}
void StopSegment::SetDelay(const bool i)
{
this->isDelay = i;
}
bool StopSegment::operator<( const StopSegment &other ) const
{
LTCOMPARE(GetRow());
if (this->GetDelay() && !other.GetDelay()) return true;
if (!this->GetDelay() && other.GetDelay()) return false;
LTCOMPARE(GetPause());
return false;
}
float DelaySegment::GetPause() const
{
return this->pauseSeconds;
}
void DelaySegment::SetPause(const float i)
{
this->pauseSeconds = i;
}
bool DelaySegment::operator<( const DelaySegment &other ) const
{
LTCOMPARE(GetRow());
LTCOMPARE(GetPause());
return false;
}
#undef LTCOMPARE
/**
* @file
* @author Jason Felds (c) 2011