// Update is called once per frame void Update() { //_grabber.AddFrame (_data); if (Input.GetKeyDown(KeyCode.P)) { } if (Input.GetKeyDown(KeyCode.R)) { _grabber2.Restart(); } }
public override void OnOutputConnected(string srcSlotName, NodeBase target, string targetSlotName) { base.OnOutputConnected(srcSlotName, target, targetSlotName); if (srcSlotName == "Grabber" && _grabber != null) { _grabber.Restart(); _grabber.Start(); _grabber.SetVolume(_volume); } else if (srcSlotName == "Samples" && _grabber != null) { _grabber.Start(); _grabber.StartThreadedGrabber(); } }