public CallStreamVm(ICallStream callStream) { this.CallStream = callStream; this.NAudioEngine.OpenFile(this.CallStream.WavFilePath); var timelineControl = new WaveformTimeline(); timelineControl.RegisterSoundPlayer(this.NAudioEngine); this.Visualization = timelineControl; }
internal CCallManagement(CItem parent, ICapability medCapability) : base(parent) { if (!(parent is CSource)) { throw new Exception("Internal error"); } this.MedCallCapability = (ICallCapability)medCapability; this.MedCallClass = (this.MedCallCapability.GetClassDirect(67108864) as ICallClass); this.id = (base.Parent as CSource).MedDataSource.RegisterNotification((int)(base.Parent.Parent.Parent as CDriver).form.Handle, 32768 + (base.Parent as CSource).SourceId, medCapability.Id, 67108864); if (this.MedCallClass.StreamCount < 1) { Console.WriteLine(this.ToString() + " : No streams"); this.MedCallStream = null; return; } this.MedCallStream = (this.MedCallClass.GetStream(1) as ICallStream); }