28 lines
927 B
JavaScript
28 lines
927 B
JavaScript
// Metro module 4778 (f4779).
|
|
import { getFileChunk } from "./fetchFromObject";
|
|
import { FileTypes } from "./Module4775";
|
|
export function isAAC(a0, a1) {
|
|
const r7 = (0, getFileChunk)(a0);
|
|
let r16 = !!FileTypes.checkByFileType(r7, "aac");
|
|
if (!r16) {
|
|
const excludeSimilarTypes = a1?.excludeSimilarTypes;
|
|
r16 = excludeSimilarTypes ? !excludeSimilarTypes : FileTypes.checkByFileType((0, getFileChunk)(r7), "m4a");
|
|
}
|
|
return r16;
|
|
}
|
|
export function isAMR(a0) {
|
|
return FileTypes.checkByFileType((0, getFileChunk)(a0), "amr");
|
|
}
|
|
export function isFLAC(a0) {
|
|
return FileTypes.checkByFileType((0, getFileChunk)(a0), "flac");
|
|
}
|
|
export function isM4A(a0) {
|
|
return FileTypes.checkByFileType((0, getFileChunk)(a0), "m4a");
|
|
}
|
|
export function isMP3(a0) {
|
|
return FileTypes.checkByFileType((0, getFileChunk)(a0), "mp3");
|
|
}
|
|
export function isWAV(a0) {
|
|
return FileTypes.checkByFileType((0, getFileChunk)(a0), "wav");
|
|
}
|