update goals file
This commit is contained in:
parent
f756c70c1c
commit
29799820e2
3 changed files with 12 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue