Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
56 lines
2 KiB
JavaScript
56 lines
2 KiB
JavaScript
// Module ID: 5203
|
|
// Function ID: 5204
|
|
// Dependencies: [5199, 5200]
|
|
// Exports: isAAC, isAMR, isFLAC, isM4A, isMP3, isWAV
|
|
|
|
// Module 5203
|
|
import _mod5199 from "module_5199" /* 5199 */;
|
|
import _mod5200 from "module_5200" /* 5200 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const isAAC = function isAAC(fileChunk, excludeSimilarTypes) {
|
|
fileChunk = _mod5199.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5200.FileTypes;
|
|
let checkByFileTypeResult1 = FileTypes.checkByFileType(fileChunk, "aac");
|
|
if (!checkByFileTypeResult1) {
|
|
excludeSimilarTypes = undefined;
|
|
if (null != excludeSimilarTypes) {
|
|
excludeSimilarTypes = excludeSimilarTypes.excludeSimilarTypes;
|
|
}
|
|
let checkByFileTypeResult = !excludeSimilarTypes;
|
|
if (!excludeSimilarTypes) {
|
|
const fileChunk1 = tmp(5199).getFileChunk(fileChunk);
|
|
const FileTypes2 = tmp(5200).FileTypes;
|
|
checkByFileTypeResult = FileTypes2.checkByFileType(fileChunk1, "m4a");
|
|
}
|
|
checkByFileTypeResult1 = checkByFileTypeResult;
|
|
}
|
|
return checkByFileTypeResult1;
|
|
};
|
|
export const isAMR = function isAMR(fileChunk) {
|
|
fileChunk = _mod5199.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5200.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "amr");
|
|
};
|
|
export const isFLAC = function isFLAC(fileChunk) {
|
|
fileChunk = _mod5199.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5200.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "flac");
|
|
};
|
|
export const isM4A = function isM4A(fileChunk) {
|
|
fileChunk = _mod5199.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5200.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "m4a");
|
|
};
|
|
export const isMP3 = function isMP3(fileChunk) {
|
|
fileChunk = _mod5199.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5200.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "mp3");
|
|
};
|
|
export const isWAV = function isWAV(fileChunk) {
|
|
fileChunk = _mod5199.getFileChunk(fileChunk);
|
|
const FileTypes = _mod5200.FileTypes;
|
|
return FileTypes.checkByFileType(fileChunk, "wav");
|
|
};
|