[timing] Better be sure we clean up afterwards.
If this is going a bit too far, feel free to leave a little bit more mess.
This commit is contained in:
@@ -14,6 +14,15 @@ TimingData::TimingData(float fOffset) :
|
|||||||
// allTimingSegments[SEGMENT_BPM] = new vector<BPMSegment>();
|
// allTimingSegments[SEGMENT_BPM] = new vector<BPMSegment>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TimingData::~TimingData()
|
||||||
|
{
|
||||||
|
for (unsigned i = 0; i < NUM_TimingSegmentTypes; i++)
|
||||||
|
{
|
||||||
|
this->allTimingSegments[i].clear();
|
||||||
|
}
|
||||||
|
delete [] this->allTimingSegments;
|
||||||
|
}
|
||||||
|
|
||||||
void TimingData::GetActualBPM( float &fMinBPMOut, float &fMaxBPMOut, float highest ) const
|
void TimingData::GetActualBPM( float &fMinBPMOut, float &fMaxBPMOut, float highest ) const
|
||||||
{
|
{
|
||||||
fMinBPMOut = FLT_MAX;
|
fMinBPMOut = FLT_MAX;
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ public:
|
|||||||
* @brief Sets up initial timing data with a defined offset.
|
* @brief Sets up initial timing data with a defined offset.
|
||||||
* @param fOffset the offset from the 0th beat. */
|
* @param fOffset the offset from the 0th beat. */
|
||||||
TimingData(float fOffset = 0);
|
TimingData(float fOffset = 0);
|
||||||
|
|
||||||
|
~TimingData();
|
||||||
/**
|
/**
|
||||||
* @brief Gets the actual BPM of the song,
|
* @brief Gets the actual BPM of the song,
|
||||||
* while respecting a limit.
|
* while respecting a limit.
|
||||||
|
|||||||
Reference in New Issue
Block a user