public SkypeConnector(ILog log, EffectChain effects) { this.log = log; InitSockets(); skype = new Skype(); ISkype iSkype = (ISkype)skype; if (!iSkype.Client.IsRunning) { log.Error("Skype is not running"); } _ISkypeEvents_Event events = (_ISkypeEvents_Event)skype; events.AttachmentStatus += OnSkypeAttachmentStatus; skype.CallStatus += OnSkypeCallStatus; skype.Error += OnSkypeError; skype.Attach(Protocol, false); bufferStream = new SkypeBufferStream(44100); OutputStream = new EffectStream(effects, bufferStream); }