mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-21 23:43:14 -04:00
finally splitted rest of LMMS, i.e. tracks, track-containers, track-content-objects, whole instrument-track/instrument-track-window and so on - still a bit unstable but I'm sure we'll manage to get this one very stable\!
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms-mv@691 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -38,12 +38,15 @@
|
||||
#include "project_journal.h"
|
||||
#include "project_notes.h"
|
||||
#include "song_editor.h"
|
||||
#include "song.h"
|
||||
|
||||
|
||||
bool engine::s_hasGUI = TRUE;
|
||||
float engine::s_framesPerTact64th;
|
||||
mixer * engine::s_mixer;
|
||||
mainWindow * engine::s_mainWindow;
|
||||
bbTrackContainer * engine::s_bbTrackContainer;
|
||||
song * engine::s_song;
|
||||
songEditor * engine::s_songEditor;
|
||||
automationEditor * engine::s_automationEditor;
|
||||
bbEditor * engine::s_bbEditor;
|
||||
@@ -63,11 +66,14 @@ void engine::init( const bool _has_gui )
|
||||
loadExtensions();
|
||||
|
||||
s_projectJournal = new projectJournal;
|
||||
s_mainWindow = new mainWindow;
|
||||
s_mixer = new mixer;
|
||||
s_songEditor = new songEditor;
|
||||
s_song = new song;
|
||||
s_bbTrackContainer = new bbTrackContainer;
|
||||
|
||||
s_mainWindow = new mainWindow;
|
||||
s_songEditor = new songEditor( s_song );
|
||||
s_projectNotes = new projectNotes;
|
||||
s_bbEditor = new bbEditor;
|
||||
s_bbEditor = new bbEditor( s_bbTrackContainer );
|
||||
s_pianoRoll = new pianoRoll;
|
||||
s_automationEditor = new automationEditor;
|
||||
s_ladspaManager = new ladspa2LMMS;
|
||||
@@ -120,7 +126,7 @@ void engine::destroy( void )
|
||||
void engine::updateFramesPerTact64th( void )
|
||||
{
|
||||
s_framesPerTact64th = s_mixer->sampleRate() * 60.0f * BEATS_PER_TACT
|
||||
/ 64.0f / s_songEditor->getTempo();
|
||||
/ 64.0f / s_song->getTempo();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user