protected override GstIAudioGrabber GetAudioGrabber() { if (_grabber == null) { _grabber = new GstLocalAudioGrabber(); _grabber.Init(GstLocalAudioGrabber.GetAudioInputInterfaceGUID(InterfaceID), Channels, SamplingRate); _grabber.Start(); } return(_grabber); }
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); } }