feat: added support for ncm (#15)

This commit is contained in:
鲁树人
2023-05-22 23:07:58 +01:00
parent b0fc56519e
commit 117351a6e5
5 changed files with 32 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import { CryptoFactory } from './CryptoBase';
import { NCMCrypto } from './ncm/ncm_pc';
import { QMC1Crypto } from './qmc/qmc_v1';
import { QMC2Crypto } from './qmc/qmc_v2';
@@ -12,6 +13,9 @@ export const allCryptoFactories: CryptoFactory[] = [
// QMCv2 (*.mflac)
QMC2Crypto.make,
// NCM (*.ncm)
NCMCrypto.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.