25 |
#include "DiskThread.h" |
#include "DiskThread.h" |
26 |
#include "Voice.h" |
#include "Voice.h" |
27 |
#include "EGADSR.h" |
#include "EGADSR.h" |
28 |
|
#include "../EngineFactory.h" |
29 |
|
|
30 |
#include "Engine.h" |
#include "Engine.h" |
31 |
|
|
59 |
pEngine = engines[pDevice]; |
pEngine = engines[pDevice]; |
60 |
} else { // create a new engine (and disk thread) instance for the given audio output device |
} else { // create a new engine (and disk thread) instance for the given audio output device |
61 |
dmsg(4,("Creating new gig::Engine.\n")); |
dmsg(4,("Creating new gig::Engine.\n")); |
62 |
pEngine = new Engine; |
pEngine = (Engine*) EngineFactory::Create("gig"); |
63 |
pEngine->Connect(pDevice); |
pEngine->Connect(pDevice); |
64 |
engines[pDevice] = pEngine; |
engines[pDevice] = pEngine; |
65 |
} |
} |
145 |
if (pSynthesisParameters[0]) free(pSynthesisParameters[0]); |
if (pSynthesisParameters[0]) free(pSynthesisParameters[0]); |
146 |
if (pVoiceStealingQueue) delete pVoiceStealingQueue; |
if (pVoiceStealingQueue) delete pVoiceStealingQueue; |
147 |
if (pSysexBuffer) delete pSysexBuffer; |
if (pSysexBuffer) delete pSysexBuffer; |
148 |
|
EngineFactory::Destroy(this); |
149 |
} |
} |
150 |
|
|
151 |
void Engine::Enable() { |
void Engine::Enable() { |
1019 |
} |
} |
1020 |
|
|
1021 |
String Engine::Version() { |
String Engine::Version() { |
1022 |
String s = "$Revision: 1.27 $"; |
String s = "$Revision: 1.28 $"; |
1023 |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
return s.substr(11, s.size() - 13); // cut dollar signs, spaces and CVS macro keyword |
1024 |
} |
} |
1025 |
|
|