"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/BBTrackContainer.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

BBTrackContainer.cpp  (lmms-1.2.0-rc7):BBTrackContainer.cpp  (lmms-1.2.0-rc8)
skipping to change at line 83 skipping to change at line 83
{ {
Engine::getSong()->addBBTrack(); Engine::getSong()->addBBTrack();
} }
} }
tact_t BBTrackContainer::lengthOfBB( int _bb ) const tact_t BBTrackContainer::lengthOfBB( int _bb ) const
{ {
MidiTime max_length = MidiTime::ticksPerTact(); MidiTime max_length = MidiTime::ticksPerTact();
const TrackList & tl = tracks(); const TrackList & tl = tracks();
for( TrackList::const_iterator it = tl.begin(); it != tl.end(); ++it ) for (Track* t : tl)
{ {
max_length = qMax( max_length, // Don't create TCOs here if not exist
( *it )->getTCO( _bb )->length() ); if (_bb < t->numOfTCOs())
{
max_length = qMax(max_length, t->getTCO( _bb )->length())
;
}
} }
return max_length.nextFullTact(); return max_length.nextFullTact();
} }
int BBTrackContainer::numOfBBs() const int BBTrackContainer::numOfBBs() const
{ {
return Engine::getSong()->countTracks( Track::BBTrack ); return Engine::getSong()->countTracks( Track::BBTrack );
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)