49 : mInitialized(false),
50 mProjectManager(projectManager),
51 mRecorderAdapter(recorderAdapter),
52 mPlayerAdapter(playerAdapter),
53 mSoundGenerator (playerAdapter),
54 mRecordingManager (recorderAdapter),
55 mSignalAnalyzer(recorderAdapter)
58 EptAssert(log,
"A log has to be specified during creation of the core");
75 LogI(
"Core denstroyed");
97 EptAssert(initAdapter,
"At least the default adapter has to be provided");
125 std::stringstream ss;
126 ss <<
"There are " <<
mMidi->GetNumberOfPorts() <<
" connected Midi devices:" << std::endl <<
mMidi->GetPortNames();
127 LogI(
"%s", ss.str().c_str());
158 mInitialized =
false;
174 LogI(
"Starting the core");
static CalculationManager & getSingleton()
Abstract adapter class for recording audio signals.
virtual void start()=0
Start/restart the audio device.
AudioRecorderAdapter * mRecorderAdapter
void stop()
Stop the core.
virtual void destroy()=0
Destroy the initialization dialog box.
void start()
Start the core.
void init(CoreInitialisationAdapter *initAdapter)
Core initialization.
RecordingManager mRecordingManager
void exit()
Synthesizer shutdown.
virtual void updateProgress(int percentage)=0
Show the current progress as a progress bar in the initialization message box.
virtual void exit() override
Destroy the audio device.
AudioPlayerAdapter * mPlayerAdapter
virtual void stop()=0
Stop the audio device.
Core initialization adapter (singleton class).
virtual void stop() override
Stop the thread.
Core(ProjectManagerAdapter *projectManager, AudioRecorderAdapter *recorderAdapter, AudioPlayerAdapter *playerAdapter, Log *log=new Log())
Core constructor.
void stop()
Stop the calculation thread.
void exit()
Thus function calls exit() of all components that were initialized.
void init()
Initialize (no functionality)
virtual void exit()=0
Destroy the audio device.
virtual void create()=0
Create the initialization dialog box.
virtual void init()=0
Inizialize the audio device.
SignalAnalyzer mSignalAnalyzer
~Core()
Core destructor, calls stop and exit.
SoundGenerator mSoundGenerator
Abstract adapter class for PCM-based audio output drivers.
Project manager adapter class.
void init()
Initializes the SignalAnalyzer and its components.
std::shared_ptr< MidiAdapter > mMidi