|
@@ -675,7 +675,7 @@ const dynamicShowPlaySpeed = (index: number) => {
|
|
|
export const initSetPlayRate = () => {
|
|
|
const item: any = (state.sectionStatus && state.section.length === 2) ? state.sectionFirst || state.section[0] : state.times[state.activeNoteIndex];
|
|
|
if (item && item.measureSpeed) {
|
|
|
- const ratio = state.speed / item.measureSpeed
|
|
|
+ const ratio = state.speed / Math.floor(item.measureSpeed)
|
|
|
// state.audiosInstance?.setSpeed(ratio)
|
|
|
state.basePlayRate = ratio || 1;
|
|
|
console.log('播放倍率',state.basePlayRate)
|
|
@@ -1723,6 +1723,8 @@ const setState = (data: any, index: number) => {
|
|
|
// 如果是PC端,放大曲谱
|
|
|
state.platform = query.platform?.toLocaleUpperCase() || "";
|
|
|
if (state.platform === IPlatform.PC) {
|
|
|
+ // pc端,谱面默认初始大小设置为1.5
|
|
|
+ state.zoom = 1.5;
|
|
|
if (query.zoom <= 1) {
|
|
|
state.zoom = query.zoom || state.zoom;
|
|
|
} else {
|