Browse Source

feat: midi调速修改

TIANYONG 6 days ago
parent
commit
d3794948b8
2 changed files with 3 additions and 2 deletions
  1. 2 1
      src/state.ts
  2. 1 1
      src/view/evaluating/index.tsx

+ 2 - 1
src/state.ts

@@ -667,7 +667,8 @@ export const togglePlay = async (playState: "play" | "paused", isForceCLoseToast
     }
     skipNotePlay(state.activeNoteIndex, false);
     await api_cloudChangeSpeed({
-      speed: state.modeType === "evaluating" ? state.originSpeed : state.speed,
+      // speed: state.modeType === "evaluating" ? state.originSpeed : state.speed,
+      speed: state.speed,
       originalSpeed: state.originSpeed,
       songID: state.examSongId,
     });

+ 1 - 1
src/view/evaluating/index.tsx

@@ -470,7 +470,7 @@ export const handleStartBegin = async (preTimes?: number) => {
 	// 如果是midi音频评测,需要调用cloudPlay
 	if (state.isAppPlay) {
 		await api_cloudChangeSpeed({
-			speed: state.originSpeed,
+			speed: state.speed,
 			originalSpeed: state.originSpeed,
 			songID: state.examSongId,
 		});