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

@@ -1,13 +1,16 @@
2008-05-27 Paul Giblock <drfaygo/at/gmail/dot/com>
* plugins/sf2_player/sf2_player.cpp:
Restore gain setting when loading a project and keep gain setting when
restore gain setting when loading a project and keep gain setting when
changing sample rate
* include/controller_view.h:
* src/gui/widgets/controller_view.cpp:
reverted toby's controllerView changes.
* src/core/mmp.cpp:
add compat-code for time-signature support
2008-05-25 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* include/controller_view.h:

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 );