compat-code for time-signature support in older projects

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1030 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-05-28 04:19:42 +00:00
parent cddc8405e0
commit f6ce2f136c
2 changed files with 11 additions and 1 deletions

View File

@@ -631,6 +631,13 @@ void multimediaProject::upgrade( void )
}
// Time-signature
if ( !m_head.hasAttribute( "timesig_numerator" ) )
{
m_head.setAttribute( "timesig_numerator", 4 );
m_head.setAttribute( "timesig_denominator", 4 );
}
if( !m_head.hasAttribute( "mastervol" ) )
{
m_head.setAttribute( "mastervol", 100 );