コード例 #1
0
ファイル: AVSOutput.cs プロジェクト: DualBrain/Emu-o-Tron
 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;
 }
コード例 #2
0
ファイル: AVSOutput.cs プロジェクト: nickmass/Emu-o-Tron
 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;
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: nickmass/Emu-o-Tron
 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;
     }
 }