public void SetUp() { messaging = new MessagingTest(); processor = new PureDataProcessor(); ((PureDataProcessor)processor).Init(testPatch, 0, messaging); patchFactory = new PatchFactory(); patchFactory.Init(); }
public void Init(string[] config) { MainFactory mainFactory = new MainFactory(); processorConfig = mainFactory.Create <IProcessorConfig>(config[0], config[1]); processorConfig.Init(); processor = processorConfig.GetProcessor(); patchGraphManager = mainFactory.Create <IPatchGraphManager>(config[2], config[3]); patchFactory = mainFactory.Create <IPatchFactory>(config[4], config[5]); patchFactory.Init(); serializer = mainFactory.Create <ISerializer>(config[6], config[7]); ((IWaveDrawer)waveDrawer).Init(Others.WavePoints); soundData = new float[Others.WavePoints * 2]; }