update goals file
This commit is contained in:
parent
f756c70c1c
commit
29799820e2
3 changed files with 12 additions and 6 deletions
|
@ -4,13 +4,15 @@
|
||||||
|
|
||||||
- .SHW (ProgramBlue) input format
|
- .SHW (ProgramBlue) input format
|
||||||
- .3ST/.R12/.C&R (APS) 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
|
- Studio C from Floppy Disk input format
|
||||||
- UST Full Stage to Single Character Stripper
|
- UST Full Stage to Single Character Stripper
|
||||||
|
|
||||||
## PC2Player
|
## PC2Player
|
||||||
|
|
||||||
- Make the program.
|
- ~~make the program~~ done!!
|
||||||
|
- fix memory leak issue
|
||||||
|
- make audio player work on windows
|
||||||
|
|
||||||
## Firmwares
|
## Firmwares
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace PinkConnection2_TestApp
|
||||||
SerialPort port = null;
|
SerialPort port = null;
|
||||||
byte b = 0;
|
byte b = 0;
|
||||||
|
|
||||||
TextBox CommandTextBox = new TextBox { MaxLength = 2 };
|
TextBox CommandTextBox = new TextBox { MaxLength = 8 };
|
||||||
DropDown SerialPortDropDown = new DropDown();
|
DropDown SerialPortDropDown = new DropDown();
|
||||||
|
|
||||||
public MainForm()
|
public MainForm()
|
||||||
|
@ -92,9 +92,9 @@ namespace PinkConnection2_TestApp
|
||||||
|
|
||||||
void sendRawSafe()
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if (port == null)
|
if (port == null)
|
||||||
|
|
|
@ -21,6 +21,8 @@ namespace PC2Player
|
||||||
byte[] AudioData;
|
byte[] AudioData;
|
||||||
Process MPVProcess;
|
Process MPVProcess;
|
||||||
|
|
||||||
|
int SkipSeconds = 0;
|
||||||
|
|
||||||
string ShowtapeName = "";
|
string ShowtapeName = "";
|
||||||
string ShowtapeStageType = "";
|
string ShowtapeStageType = "";
|
||||||
string ShowtapeCharacter = "";
|
string ShowtapeCharacter = "";
|
||||||
|
@ -69,7 +71,7 @@ namespace PC2Player
|
||||||
|
|
||||||
MPVProcess = new Process();
|
MPVProcess = new Process();
|
||||||
MPVProcess.StartInfo.FileName = "mpv";
|
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 = new System.Timers.Timer((1000d/60d)*FrameSkip);
|
||||||
FrameTimer.Elapsed += Event_FrameTimerTick;
|
FrameTimer.Elapsed += Event_FrameTimerTick;
|
||||||
|
@ -264,6 +266,8 @@ namespace PC2Player
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
File.WriteAllBytes("tmp.wav", AudioData);
|
File.WriteAllBytes("tmp.wav", AudioData);
|
||||||
|
Index = SkipSeconds*60;
|
||||||
|
MPVProcess.StartInfo.Arguments = $"--start={SkipSeconds} tmp.wav";
|
||||||
MPVProcess.Start();
|
MPVProcess.Start();
|
||||||
FrameTimer.Start();
|
FrameTimer.Start();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue