Example #1
0
        void IntervalEnd()
        {
            // Interval ended - update GUI text and start new interval
            float lastFps = accum / frames;

            SensorRecorder.RecordDataPoint("FPS", lastFps);
        }
Example #2
0
        protected void HandleSensorRecorderCreated(SensorRecorder sensorRecorder)
        {
            this.sensorRecorder = sensorRecorder;
            string documentsPath = StorageManager.Storages
                                   .Where(x => x.StorageType == StorageArea.Internal)
                                   .First()
                                   .GetAbsolutePath(DirectoryType.Documents);

            recordDirectoryPath = Path.Combine(documentsPath, "Wearable-ML-Records");
            Directory.CreateDirectory(recordDirectoryPath);

            Server.RecordDirectoryPath = recordDirectoryPath;
            Server.Sensor = sensorRecorder;
            Server.Start(HandleServerStarted);
        }
Example #3
0
        protected void HandleAudioRecorderCreated(AudioRecorder audioRecorder)
        {
            this.audioRecorder = audioRecorder;

            SensorRecorder.Create(HandleSensorRecorderCreated);
        }