コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        //_grabber.AddFrame (_data);

        if (Input.GetKeyDown(KeyCode.P))
        {
        }
        if (Input.GetKeyDown(KeyCode.R))
        {
            _grabber2.Restart();
        }
    }
コード例 #2
0
 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();
     }
 }