Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 private void recordWAVToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (state != SystemState.Empty)
     {
         recordDialog.FileName = cpu.rom.fileName;
         SystemState old = state;
         state = SystemState.SystemPause;
         recordDialog.DefaultExt = ".wav";
         recordDialog.Title = "Save WAV";
         recordDialog.Filter = "WAV Files|*.wav";
         if (recordDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             wavRecorder = new WAVOutput(recordDialog.FileName, cpu.APU.sampleRate);
             stopWAVToolStripMenuItem.Enabled = true;
         }
         state = old;
     }
 }