[splittiming] a function to create steps for the song (259 build errors)
This commit is contained in:
@@ -458,7 +458,7 @@ bool SMLoader::LoadFromSMFile( const RString &sPath, Song &out, bool bFromCache
|
||||
}
|
||||
|
||||
out.m_Timing.m_sFile = sPath;
|
||||
LoadTimingFromSMFile( msd, out.m_Timing );
|
||||
LoadTimingFromSMFile( msd, out.m_SongTiming );
|
||||
|
||||
for( unsigned i=0; i<msd.GetNumValues(); i++ )
|
||||
{
|
||||
|
||||
@@ -145,6 +145,18 @@ void Song::AddLyricSegment( LyricSegment seg )
|
||||
m_LyricSegments.push_back( seg );
|
||||
}
|
||||
|
||||
Steps *Song::CreateSteps()
|
||||
{
|
||||
Steps *pSteps = new Steps;
|
||||
InitSteps( pSteps );
|
||||
return pSteps;
|
||||
}
|
||||
|
||||
void Song::InitSteps(Steps *pSteps)
|
||||
{
|
||||
pSteps->m_Timing = m_SongTiming;
|
||||
}
|
||||
|
||||
void Song::GetDisplayBpms( DisplayBpms &AddTo ) const
|
||||
{
|
||||
if( m_DisplayBPMType == DISPLAY_BPM_SPECIFIED )
|
||||
|
||||
+5
-1
@@ -336,11 +336,15 @@ public:
|
||||
void SetBPMAtBeat( float fBeat, float fBPM ) { m_Timing.SetBPMAtBeat( fBeat, fBPM ); }
|
||||
BPMSegment& GetBPMSegmentAtBeat( float fBeat ) { return m_Timing.GetBPMSegmentAtBeat( fBeat ); }
|
||||
*/
|
||||
|
||||
Steps *CreateSteps();
|
||||
void InitSteps(Steps *pSteps);
|
||||
|
||||
/**
|
||||
* @brief Retrieve the beat based on the specified time.
|
||||
* @param fElapsedTime the amount of time since the Song started.
|
||||
* @return the appropriate beat. */
|
||||
/* [splittiming]
|
||||
float SongGetBeatFromElapsedTime( float fElapsedTime ) const
|
||||
{
|
||||
return m_SongTiming.GetBeatFromElapsedTime( fElapsedTime );
|
||||
@@ -358,7 +362,7 @@ public:
|
||||
{
|
||||
return steps.m_Timing.GetElapsedTimeFromBeat( fBeat );
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
/* [splittiming]
|
||||
float GetBeatFromElapsedTime( float fElapsedTime ) const
|
||||
|
||||
Reference in New Issue
Block a user