|
@@ -15,6 +15,7 @@ import {
|
|
|
startSoundCheck,
|
|
|
api_openWebView,
|
|
|
api_startRecording,
|
|
|
+ api_startRecordingCb,
|
|
|
api_stopRecording,
|
|
|
api_recordStartTime,
|
|
|
api_remove_recordStartTime,
|
|
@@ -359,13 +360,18 @@ export const handleStartBegin = async (preTimes?: number) => {
|
|
|
}
|
|
|
if (evaluatingData.isErrorState) return
|
|
|
//开始录音
|
|
|
- await api_startRecording({
|
|
|
+ // await api_startRecording({
|
|
|
+ // accompanimentState: state.setting.enableAccompaniment ? 1 : 0,
|
|
|
+ // firstNoteTime: preTimes || 0,
|
|
|
+ // });
|
|
|
+ await api_startRecordingCb({
|
|
|
accompanimentState: state.setting.enableAccompaniment ? 1 : 0,
|
|
|
firstNoteTime: preTimes || 0,
|
|
|
- });
|
|
|
- if (state.isAppPlay) {
|
|
|
- sendOffsetTime(0)
|
|
|
- }
|
|
|
+ }, () => {
|
|
|
+ if (state.isAppPlay) {
|
|
|
+ sendOffsetTime(0)
|
|
|
+ }
|
|
|
+ })
|
|
|
// 如果开启了摄像头, 开启录制视频
|
|
|
if (state.setting.camera) {
|
|
|
console.log("开始录制视频");
|