- frames computation based on 64th of a tact

- changed playPos frame counter to float, improves timing precision


git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@282 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-08-06 21:34:27 +00:00
parent cd4932feff
commit 70397db8b0
2 changed files with 76 additions and 67 deletions

View File

@@ -28,7 +28,6 @@
#define _SONG_EDITOR_H
#include "track_container.h"
#include "types.h"
#include "tool_button.h"
@@ -71,14 +70,14 @@ public:
midiTime( _abs ),
m_timeLine( NULL ),
m_timeLineUpdate( TRUE ),
m_currentFrame( 0 )
m_currentFrame( 0.0f )
{
}
inline void setCurrentFrame( const f_cnt_t _f )
inline void setCurrentFrame( const float _f )
{
m_currentFrame = _f;
}
inline f_cnt_t currentFrame( void ) const
inline float currentFrame( void ) const
{
return( m_currentFrame );
}
@@ -86,7 +85,7 @@ public:
bool m_timeLineUpdate;
private:
f_cnt_t m_currentFrame;
float m_currentFrame;
} ;
@@ -310,7 +309,7 @@ private:
private slots:
void updateFramesPerTact( void );
void updateFramesPerTact64th( void );
signals: