feat: add support for migu3d formats

This commit is contained in:
鲁树人
2023-05-27 00:47:00 +01:00
parent 5680e08c4a
commit 39eefd9117
5 changed files with 25 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ import { KGMCrypto } from './kgm/kgm_pc';
import { NCMCrypto } from './ncm/ncm_pc';
import { XimalayaAndroidCrypto } from './xmly/xmly_android';
import { KWMCrypto } from './kwm/kwm';
import { MiguCrypto } from './migu/migu3d_keyless';
export const allCryptoFactories: CryptoFactory[] = [
// Xiami (*.xm)
@@ -24,6 +25,9 @@ export const allCryptoFactories: CryptoFactory[] = [
// KWMv1 (*.kwm)
KWMCrypto.make,
// Migu3D/Keyless (*.wav; *.m4a)
MiguCrypto.make,
// Crypto that does not implement "checkBySignature" or need to decrypt the entire file and then check audio type,
// should be moved to the bottom of the list for performance reasons.