public AVSOutput(string outputPath, int width, int height, double fps, int sampleRate) { this.fps = fps; this.outputPath = outputPath; wavRecorder = new WAVOutput(Path.ChangeExtension(outputPath, ".wav"), sampleRate); bmpRecorder = new BMPOutput(Path.ChangeExtension(outputPath, ".tmp"), width, height); frames = 0; recording = true; }