Read and write TICKCOUNTS. Invalidate cache.

At this time, the tag does nothing.
That will hopefully change within the week.
This commit is contained in:
Jason Felds
2011-01-18 11:23:32 -05:00
parent b15ec02955
commit 504d5a484e
3 changed files with 59 additions and 1 deletions
+14 -1
View File
@@ -34,7 +34,7 @@
#include <set>
#include <float.h>
const int FILE_CACHE_VERSION = 161; // increment this to invalidate cache
const int FILE_CACHE_VERSION = 162; // increment this to invalidate cache
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
@@ -758,6 +758,19 @@ void Song::TidyUpData()
seg.m_iDenominator = 4;
m_Timing.m_vTimeSignatureSegments.push_back( seg );
}
/*
* Likewise, if no tickcount signature is specified, assume 2 ticks
* per beat for the entire song. The default of 2 is chosen more
* for compatibility with the Pump Pro series than anything else.
*/
if( m_Timing.m_TickcountSegments.empty() )
{
TickcountSegment seg;
seg.m_iStartRow = 0;
seg.m_iTicks = 2;
m_Timing.m_TickcountSegments.push_back( seg );
}
}
void Song::TranslateTitles()