iSpyApplication.MainForm.AddMicrophoneExternal C# (CSharp) Method

AddMicrophoneExternal() private method

private AddMicrophoneExternal ( int sourceIndex, string url, int width, int height, string name ) : VolumeLevel
sourceIndex int
url string
width int
height int
name string
return VolumeLevel
        private VolumeLevel AddMicrophoneExternal(int sourceIndex, string url, int width, int height, string name)
        {
            VolumeLevel vl = NewVolumeLevel(sourceIndex);
            vl.Micobject.name = name;
            vl.Micobject.settings.sourcename = url;

            vl.Micobject.id = NextMicrophoneId;
            AddObject(vl.Micobject);

            string path = Helper.GetMediaDirectory(1, vl.Micobject.id) + "audio\\" + vl.Micobject.directory + "\\";
            if (!Directory.Exists(path))
                Directory.CreateDirectory(path);

            vl.Micobject.settings.accessgroups = "";
            SetNewStartPosition();
            vl.Enable();
            return vl;
        }
MainForm