25 #include "../include/DSPatch.h"
33 bool DSPatch::IsThisGlobalCircuit(
DspComponent* thisComponent )
35 if( _globalCircuit != NULL )
37 return _globalCircuit == thisComponent;
45 bool DSPatch::AddGlobalComponent(
DspComponent* component, std::string componentName )
47 if( _globalCircuit != NULL )
49 return _globalCircuit->AddComponent( component, componentName );
57 void DSPatch::RemoveGlobalComponent(
DspComponent* component )
59 if( _globalCircuit != NULL )
61 return _globalCircuit->RemoveComponent( component );
67 unsigned short DSPatch::GetGlobalComponentCount()
69 if( _globalCircuit != NULL )
71 return _globalCircuit->GetComponentCount();
79 void DSPatch::StartGlobalAutoTick()
81 if( _globalCircuit != NULL )
83 _globalCircuit->StartAutoTick();
89 void DSPatch::StopGlobalAutoTick()
91 if( _globalCircuit != NULL )
93 _globalCircuit->StopAutoTick();
99 void DSPatch::SetGlobalThreadCount(
unsigned short threadCount )
101 if( _globalCircuit != NULL )
103 _globalCircuit->SetThreadCount( threadCount );
109 void DSPatch::Finalize()
111 delete _globalCircuit;
112 _globalCircuit = NULL;