|
@ -22,7 +22,7 @@ export async function Decrypt(file: Blob, raw_filename: string, raw_ext: string) |
|
|
console.log('qmc: using wasm decoder'); |
|
|
console.log('qmc: using wasm decoder'); |
|
|
|
|
|
|
|
|
const qmcDecrypted = await DecryptQmcWasm(buffer, raw_ext); |
|
|
const qmcDecrypted = await DecryptQmcWasm(buffer, raw_ext); |
|
|
// 若 wasm 失败,降级到 js 再尝试一次
|
|
|
// 若 wasm 失败,使用 js 再尝试一次
|
|
|
if (qmcDecrypted.success) { |
|
|
if (qmcDecrypted.success) { |
|
|
musicDecoded = qmcDecrypted.data; |
|
|
musicDecoded = qmcDecrypted.data; |
|
|
console.log('qmc wasm decoder suceeded'); |
|
|
console.log('qmc wasm decoder suceeded'); |
|
|