Skip to content

Commit

Permalink
add playmode request to view
Browse files Browse the repository at this point in the history
  • Loading branch information
LingFeng-bbben committed Aug 12, 2024
1 parent d1b3eff commit 58c2459
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MainWindowCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,8 @@ private bool sendRequestContinue(DateTime StartAt)
control = EditorControlMethod.Continue,
startAt = StartAt.Ticks,
startTime = (float)Bass.BASS_ChannelBytes2Seconds(bgmStream, Bass.BASS_ChannelGetPosition(bgmStream)),
audioSpeed = GetPlaybackSpeed()
audioSpeed = GetPlaybackSpeed(),
editorPlayMethod = editorSetting.editorPlayMethod

Check warning on line 1214 in MainWindowCore.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
};
var json = JsonConvert.SerializeObject(request);
var response = WebControl.RequestPOST("http://localhost:8013/", json);
Expand Down Expand Up @@ -1266,6 +1267,7 @@ private bool sendRequestRun(DateTime StartAt, PlayMethod playMethod)
request.comboStatusType = editorSetting!.comboStatusType;
request.audioSpeed = GetPlaybackSpeed();
request.smoothSlideAnime = editorSetting!.SmoothSlideAnime;
request.editorPlayMethod = editorSetting.editorPlayMethod;
});

json = JsonConvert.SerializeObject(request);
Expand Down

0 comments on commit 58c2459

Please sign in to comment.