mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-21 23:43:14 -04:00
- 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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user