- moved framesPerTact() from songEditor to engine

- update frames per tact only when changes happen


git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@275 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Javier Serrano Polo
2006-08-01 21:27:06 +00:00
parent e7229bfdee
commit e6ff4b1c4b
3 changed files with 30 additions and 16 deletions

View File

@@ -31,6 +31,7 @@
#include "engine.h"
#include "main_window.h"
#include "mixer.h"
#include "pattern.h"
#include "piano_roll.h"
#include "preset_preview_play_handle.h"
#include "project_notes.h"
@@ -105,6 +106,15 @@ void engine::close( void )
void engine::updateFramesPerTact( void )
{
m_frames_per_tact = m_mixer->sampleRate() * 60.0f * BEATS_PER_TACT
/ m_songEditor->getTempo();
}
engineObject::engineObject( engine * _engine ) :
m_engine( _engine )