예제 #1
0
        private SOBSSource _translateSource(OBSSourceItem input, int index = 0)
        {
            SOBSSource source = new SOBSSource();

            source.Id     = _uidFromString(input.Name + "_" + index.ToString());
            source.Index  = index;
            source.Name   = input.Name;
            source.Muted  = input.Muted;
            source.Video  = false;
            source.Audio  = _sourceHasAudio(input.TypeId);
            source.Type   = input.Type;
            source.Volume = 0;
            return(source);
        }
예제 #2
0
        private SOBSSource _translateSource(SLOBSSource input, int index = 0)
        {
            SOBSSource source = new SOBSSource();

            source.Id         = input.Id;
            source.Index      = index;
            source.ResourceId = input.ResourceId;
            source.Name       = input.Name;
            source.Muted      = input.Muted;
            source.Video      = input.Video;
            source.Audio      = input.Audio;
            source.Type       = input.Type;
            source.Volume     = 0;

            return(source);
        }
예제 #3
0
 private void Obs_SourceChanged(IOBSConnector sender, EOBSEvent eventtype, SOBSSource eventdata)
 {
 }