iSpyApplication.MainForm.AddCameraMicrophone C# (CSharp) Method

AddCameraMicrophone() private method

private AddCameraMicrophone ( int cameraid, string name ) : VolumeLevel
cameraid int
name string
return VolumeLevel
        internal VolumeLevel AddCameraMicrophone(int cameraid, string name)
        {
            if (cameraid == -1)
                cameraid = NextCameraId;
            VolumeLevel vl = NewVolumeLevel(4);
            vl.Micobject.name = name;
            vl.Micobject.settings.sourcename = cameraid.ToString(CultureInfo.InvariantCulture);
            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();
            return vl;
        }
MainForm