MCPcopy Create free account
hub / github.com/LMMS/lmms / updateLength

Method updateLength

src/core/Song.cpp:597–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595
596
597void Song::updateLength()
598{
599 m_length = 0;
600 m_tracksMutex.lockForRead();
601 for( TrackList::const_iterator it = tracks().begin();
602 it != tracks().end(); ++it )
603 {
604 if( Engine::getSong()->isExporting() &&
605 ( *it )->isMuted() )
606 {
607 continue;
608 }
609
610 const tact_t cur = ( *it )->length();
611 if( cur > m_length )
612 {
613 m_length = cur;
614 }
615 }
616 m_tracksMutex.unlock();
617
618 emit lengthChanged( m_length );
619}
620
621
622

Callers 3

runMethod · 0.45
shiftPosMethod · 0.45
dragNotesMethod · 0.45

Calls 5

getSongFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
lengthMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected