mirror of
https://git.unlock-music.dev/um/web.git
synced 2024-12-29 06:45:03 +08:00
Update annotation & log output
This commit is contained in:
parent
c2556d7cc5
commit
e51c7b81b1
@ -22,12 +22,12 @@ export async function Decrypt(file: Blob, raw_filename: string, raw_ext: string)
|
||||
console.log('qmc: using wasm decoder');
|
||||
|
||||
const qmcDecrypted = await DecryptQmcWasm(buffer, raw_ext);
|
||||
// 若 qmc 检测失败,降级到 v1 再尝试一次
|
||||
// 若 wasm 失败,降级到 js 再尝试一次
|
||||
if (qmcDecrypted.success) {
|
||||
musicDecoded = qmcDecrypted.data;
|
||||
console.log('qmc wasm decoder suceeded');
|
||||
} else {
|
||||
console.warn('QmcWasm failed with error %s', qmcDecrypted.error || '(no error)');
|
||||
console.warn('QmcWasm failed with error %s', qmcDecrypted.error || '(unknown error)');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user