Exemplo n.º 1
0
 //TODO
 public GrpcPlayer(DataManager dataMan, MetaGen component)
 {
     dataManager  = dataMan;
     metagen_comp = component;
     World        = component.World;
     bvhRecorder  = new BvhRecorder(metagen_comp);
 }
Exemplo n.º 2
0
 public MetaRecorder(MetaGen component)
 {
     metagen_comp                   = component;
     streamRecorder                 = new PoseStreamRecorder(metagen_comp);
     eyeRecorder                    = new EyeStreamRecorder(metagen_comp);
     mouthRecorder                  = new MouthStreamRecorder(metagen_comp);
     controllerRecorder             = new ControllerStreamRecorder(metagen_comp);
     voiceRecorder                  = new VoiceRecorder(metagen_comp);
     bvhRecorder                    = new BvhRecorder(metagen_comp);
     visionRecorder                 = new VisionRecorder(camera_resolution, metagen_comp);
     animationRecorder              = metagen_comp.Slot.AttachComponent <RecordingTool>();
     animationRecorder.metagen_comp = metagen_comp;
 }
Exemplo n.º 3
0
 public VideoRecorder(String fileName, int width, int height, int frameRate, MetaGen component)
 {
     metagen_comp   = component;
     this.width     = width;
     this.height    = height;
     this.frameRate = frameRate;
     this.fileName  = fileName;
     framesQueue    = new ConcurrentQueue <byte[]>();
     UniLog.Log("Starting writerloop");
     //writtingTask = metagen_comp.StartTask(async ()=>await Task.Run(FileWriterLoop));
     //writtingTask = Task.Run(FileWriterLoop);
     writtingThread = new Thread(FileWriterLoop);
     writtingThread.IsBackground = true;
     writtingThread.Priority     = ThreadPriority.AboveNormal;
     writtingThread.Name         = "Video frame writting thread";
     writtingThread.Start();
 }
 public PoseStreamInteraction(MetaGen component)
 {
     metagen_comp = component;
 }
Exemplo n.º 5
0
 public BvhRecorder(MetaGen component)
 {
     metagen_comp = component;
 }
Exemplo n.º 6
0
 public PoseStreamRecorder(MetaGen component) : base(component)
 {
     metagen_comp = component;
 }
Exemplo n.º 7
0
 public BinaryDataRecorder(MetaGen component)
 {
     metagen_comp = component;
 }
Exemplo n.º 8
0
 public InputDeviceStreamRecorder(MetaGen component) : base(component)
 {
     metagen_comp = component;
 }
Exemplo n.º 9
0
 public MetaDataManager(MetaGen component)
 {
     metagen_comp = component;
 }
Exemplo n.º 10
0
 public UserBinaryDataRecorder(MetaGen component) : base(component)
 {
     metagen_comp = component;
 }
Exemplo n.º 11
0
 public VisionRecorder(int2 resolution, MetaGen component)
 {
     camera_resolution = resolution;
     metagen_comp      = component;
 }
Exemplo n.º 12
0
 public ControllerStreamRecorder(MetaGen component) : base(component)
 {
     metagen_comp = component;
 }
Exemplo n.º 13
0
        //public string saving_folder {
        //    get {
        //        return metagen_comp.dataManager.saving_folder;
        //    }
        //}

        public VoiceRecorder(MetaGen component)
        {
            metagen_comp = component;
            this.buffer  = new float[metagen_comp.Engine.AudioSystem.BufferSize];
        }