AutomationRecorder: instantiate even in console-only mode

Always create an instance of AutomationRecorder in Engine class as
it is not related to GUI at all. Fixes crash when rendering a project
in console-only mode.
This commit is contained in:
Tobias Doerffel
2009-05-17 00:00:16 +02:00
parent c86f7b5104
commit 55548d58c0

View File

@@ -121,6 +121,8 @@ void engine::init( const bool _has_gui )
s_midiControlListener = new MidiControlListener();
s_automationRecorder = new AutomationRecorder;
if( s_hasGUI )
{
s_mainWindow = new mainWindow;
@@ -131,7 +133,6 @@ void engine::init( const bool _has_gui )
s_bbEditor = new bbEditor( s_bbTrackContainer );
s_pianoRoll = new pianoRoll;
s_automationEditor = new automationEditor;
s_automationRecorder = new AutomationRecorder;
s_mainWindow->finalize();
}