From 29799820e2ac004e1f360023ecd5faeef0511d30 Mon Sep 17 00:00:00 2001 From: Persephone Bubblegum-Holiday Date: Sun, 18 May 2025 11:07:18 -0700 Subject: [PATCH] update goals file --- Future Goals.md | 6 ++++-- .../PinkConnection2-TestApp/MainForm.cs | 6 +++--- PC2Player/PC2Player/MainForm.cs | 6 +++++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Future Goals.md b/Future Goals.md index fe0777e..30f46c1 100644 --- a/Future Goals.md +++ b/Future Goals.md @@ -4,13 +4,15 @@ - .SHW (ProgramBlue) input format - .3ST/.R12/.C&R (APS) input format - - Biphase (Pianocorder and Cyberstar) from tape input format (unlikely) + - Biphase (Pianocorder and Cyberstar) from tape input format - Studio C from Floppy Disk input format - UST Full Stage to Single Character Stripper ## PC2Player - - Make the program. + - ~~make the program~~ done!! + - fix memory leak issue + - make audio player work on windows ## Firmwares diff --git a/Legacy Tools/PinkConnection2-TestApp/PinkConnection2-TestApp/MainForm.cs b/Legacy Tools/PinkConnection2-TestApp/PinkConnection2-TestApp/MainForm.cs index 29338ee..2e19620 100644 --- a/Legacy Tools/PinkConnection2-TestApp/PinkConnection2-TestApp/MainForm.cs +++ b/Legacy Tools/PinkConnection2-TestApp/PinkConnection2-TestApp/MainForm.cs @@ -11,7 +11,7 @@ namespace PinkConnection2_TestApp SerialPort port = null; byte b = 0; - TextBox CommandTextBox = new TextBox { MaxLength = 2 }; + TextBox CommandTextBox = new TextBox { MaxLength = 8 }; DropDown SerialPortDropDown = new DropDown(); public MainForm() @@ -92,9 +92,9 @@ namespace PinkConnection2_TestApp void sendRawSafe() { - if (CommandTextBox.Text.Length != 2) + if (CommandTextBox.Text.Length != 8) { - MessageBox.Show("Command length must not be less than 2"); + MessageBox.Show("Command length must not be less than 8"); return; } if (port == null) diff --git a/PC2Player/PC2Player/MainForm.cs b/PC2Player/PC2Player/MainForm.cs index 8063dd7..81b2bf3 100644 --- a/PC2Player/PC2Player/MainForm.cs +++ b/PC2Player/PC2Player/MainForm.cs @@ -21,6 +21,8 @@ namespace PC2Player byte[] AudioData; Process MPVProcess; + int SkipSeconds = 0; + string ShowtapeName = ""; string ShowtapeStageType = ""; string ShowtapeCharacter = ""; @@ -69,7 +71,7 @@ namespace PC2Player MPVProcess = new Process(); MPVProcess.StartInfo.FileName = "mpv"; - MPVProcess.StartInfo.Arguments = "tmp.wav"; + MPVProcess.StartInfo.Arguments = $"--start={SkipSeconds} tmp.wav"; FrameTimer = new System.Timers.Timer((1000d/60d)*FrameSkip); FrameTimer.Elapsed += Event_FrameTimerTick; @@ -264,6 +266,8 @@ namespace PC2Player return; } File.WriteAllBytes("tmp.wav", AudioData); + Index = SkipSeconds*60; + MPVProcess.StartInfo.Arguments = $"--start={SkipSeconds} tmp.wav"; MPVProcess.Start(); FrameTimer.Start();