void IntervalEnd() { // Interval ended - update GUI text and start new interval float lastFps = accum / frames; SensorRecorder.RecordDataPoint("FPS", lastFps); }
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); }
protected void HandleAudioRecorderCreated(AudioRecorder audioRecorder) { this.audioRecorder = audioRecorder; SensorRecorder.Create(HandleSensorRecorderCreated); }