Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/wa.picotech.app/public_html/node_modules/music-metadata/lib/musepack/sv7/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Header = void 0;
const Token = require("token-types");
const util = require("../../common/Util");
/**
* BASIC STRUCTURE
*/
exports.Header = {
len: 6 * 4,
get: (buf, off) => {
const header = {
// word 0
signature: Buffer.from(buf).toString('latin1', off, off + 3),
// versionIndex number * 1000 (3.81 = 3810) (remember that 4-byte alignment causes this to take 4-bytes)
streamMinorVersion: util.getBitAllignedNumber(buf, off + 3, 0, 4),
streamMajorVersion: util.getBitAllignedNumber(buf, off + 3, 4, 4),
// word 1
frameCount: Token.UINT32_LE.get(buf, off + 4),
// word 2
maxLevel: Token.UINT16_LE.get(buf, off + 8),
sampleFrequency: [44100, 48000, 37800, 32000][util.getBitAllignedNumber(buf, off + 10, 0, 2)],
link: util.getBitAllignedNumber(buf, off + 10, 2, 2),
profile: util.getBitAllignedNumber(buf, off + 10, 4, 4),
maxBand: util.getBitAllignedNumber(buf, off + 11, 0, 6),
intensityStereo: util.isBitSet(buf, off + 11, 6),
midSideStereo: util.isBitSet(buf, off + 11, 7),
// word 3
titlePeak: Token.UINT16_LE.get(buf, off + 12),
titleGain: Token.UINT16_LE.get(buf, off + 14),
// word 4
albumPeak: Token.UINT16_LE.get(buf, off + 16),
albumGain: Token.UINT16_LE.get(buf, off + 18),
// word
lastFrameLength: (Token.UINT32_LE.get(buf, off + 20) >>> 20) & 0x7FF,
trueGapless: util.isBitSet(buf, off + 23, 0)
};
header.lastFrameLength = header.trueGapless ? (Token.UINT32_LE.get(buf, 20) >>> 20) & 0x7FF : 0;
return header;
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0032 ]-- |